cURL によって送信される以下のヘッダーの違いは何ですか?
$header="POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .="Content-Type: application/x-www-form-urlencoded\r\n";
$header .="Host: www.paypal.com\r\n";
$header .="Connection: close\r\n\r\n";
と
$header = array ('POST /cgi-bin/webscr HTTP/1.1', 'Content-Type: application/x-www-form-urlencoded', 'Host: www.paypal.com', 'Connection: close');
のために使用される
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
cURL のヘッダーを設定するために両方の方法を使用できますか?ありがとう