Skip to main content
formatting improved
Source Link
Misa Lazovic
  • 2.8k
  • 10
  • 34
  • 39

#This is workingThis worked for me curl -H "Content-Type: application/json" -X POST -d @./my_json_body.txt http://192.168.1.1/json

curl -H "Content-Type: application/json" -X POST -d @./my_json_body.txt http://192.168.1.1/json 

#This is working for me curl -H "Content-Type: application/json" -X POST -d @./my_json_body.txt http://192.168.1.1/json

This worked for me:

curl -H "Content-Type: application/json" -X POST -d @./my_json_body.txt http://192.168.1.1/json 
Source Link
Amit Vujic
  • 1.8k
  • 1
  • 27
  • 32

#This is working for me curl -H "Content-Type: application/json" -X POST -d @./my_json_body.txt http://192.168.1.1/json