What is difference between below headers sent by cURL?
$header="POST /cgi-bin/webscr HTTP/1.1
";
$header .="Content-Type: application/x-www-form-urlencoded
";
$header .="Host: www.paypal.com
";
$header .="Connection: close
";
And
$header = array ('POST /cgi-bin/webscr HTTP/1.1', 'Content-Type: application/x-www-form-urlencoded', 'Host: www.paypal.com', 'Connection: close');
Used for
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
Can I use both methods for setting up headers for cURL?Thanks