While reading setopt function in cURL I came across CURLOPT_HTTPPOST
and CURLOPT_POSTFIELDS
, so just wanted to know the difference between the options
multipart/formpost(CURLOPT_HTTPPOST)
and
postfields(CURLOPT_POSTFIELDS)
Where we should use each of them?