hd.
hd.

Reputation: 18366

curl function and multipart/form-data issue

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

Upvotes: 0

Views: 1160

Answers (2)

user7675
user7675

Reputation:

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

Upvotes: 2

Marcelo Cantos
Marcelo Cantos

Reputation: 186118

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.

Upvotes: 1

Related Questions