default http headers generated by php curl

We know that we can customize http headers for php curl using CURLOPT_HTTPHEADER. But if we do not add additional headers, what http headers does curl send by default? In fact, the default http request is very simple: 3 lines with 2 headers:

GET / HTTP/1.1
Host: myprogrammingnotes.com
Accept: */*

No extra http headers.

Note that this is not the minimum set of required(necessary) http headers since “Accept: */*” is not necessary as per http specification.

 

 

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:
Posted in

Comments are closed, but trackbacks and pingbacks are open.