Answer the question
In order to leave comments, you need to log in
Why does Curl 7.22 header have a different response when upgrading to 7.47?
Good day everyone.
I have a code to send headers:
$arr[]='User-Agent: teeeeest';
$arr[]='Host: '.$host;
$c = curl_init($url);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_HTTPHEADER, $arr);
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
$check = curl_exec($c);
(
[Accept] => */*
[User-Agent] => teeeeest
[Host] => answer.site.com
)
(
[Host] => answer.site.com
[Accept] => */*
[User-Agent] => teeeeest
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question