0

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

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.