Answers for "curl post a file"

PHP
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
-1

curl upload file

curl -F "FIELDNAME=@FILE" http://URL 
# FIELDNAME can be whatever you want, it is the key value of the form field
# the @ is important to point to a local file
Posted by: Guest on January-09-2021

Browse Popular Code Answers by Language