i am trying to make HTPPS request to a server to send json file using curl . please help me out
Asked
Active
Viewed 253 times
-2
-
What did you try so far? What is a specific problem you facing? – Prophet Feb 13 '15 at 08:48
-
1A note for newbies, before you post questions read http://stackoverflow.com/help/asking and http://stackoverflow.com/help/how-to-ask – Arun A S Feb 13 '15 at 08:50
1 Answers
0
I guess your question means "I want to send JSON data to a server with cURL".
curl -H "Content-Type: application/json" -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
The above example taken from this answer should work. Modify the text after -d
accordingly.
-
using c program , i was trying to send the Json .problem was with expected header from the server – brajesh kumar Jul 28 '15 at 05:27