I am writing a cURL with PHP without specifying the Content-type in the header, I set the post fields as below and it works. My question is how do I know if it is sent by multipart/form-data or not?
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($_POST) );