Answers for "curl post data file"

PHP
1

curl data from file

curl -i -X POST host:port/post-file \
  -H "Content-Type: text/xml" \
  --data-binary "@path/to/file"
Posted by: Guest on December-02-2020
0

curl post json file

curl -X POST -H "Content-Type: application/json" -d @../data/cats.json http://localhost:8080/mSfvMwNAfj
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language