Question

does curl function need any special option to post multipart/form-data ?

Was it helpful?

Solution

Use curl_setopt() to set CURLOPT_POSTFIELDS to an associative array.

OTHER TIPS

Use curl's -F (or --form) and --form-string options to POST multipart/form-data.

That is, assuming you are talking about the curl program, not the libcurl library. This wasn't clear from your question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top