I want to send myfile.json for one POST parameter while specifying explicit value for another parameter with CURL. Is it possible?

Something like POST a=value1&b=<load and encode from my file.json>

2 Answers 2


Working example:

curl -XPOST http://localhost:9999/bigdata/sparql\
     --data-urlencode "[email protected]" \
     --data-urlencode "format=csv" 

If you look at the documentation you will find this syntax:

curl -XPOST -d b=@/path/postbody.json

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .