Can I call href="http://php.net/curl_setopt">curl_setopt
with
CURLOPT_HTTPHEADER
multiple times to set multiple
headers?
$url =
'http://www.example.com/';
$curlHandle =
curl_init($url);
curl_setopt($curlHandle, CURLOPT_HTTPHEADER,
array('Content-type: application/xml'));
curl_setopt($curlHandle,
CURLOPT_HTTPHEADER, array('Authorization: gfhjui'));
$execResult =
curl_exec($curlHandle);
No comments:
Post a Comment