-2

i am trying to make HTPPS request to a server to send json file using curl . please help me out

  • What did you try so far? What is a specific problem you facing? – Prophet Feb 13 '15 at 08:48
  • 1
    A 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 Answers1

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.

Community
  • 1
  • 1
Mitsos101
  • 551
  • 3
  • 15