Skip to main content

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request, and

$information = curl_getinfo($curl_exect); 

after the request

View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your curl_setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if(return $httpcode == 200) {  return true; } return false;200; 

These are just some methods of using the headers.

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request, and

$information = curl_getinfo($curl_exect); 

after the request

View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your curl_setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) {  return true; } return false; 

These are just some methods of using the headers.

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request, and

$information = curl_getinfo($curl_exect); 

after the request

View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your curl_setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); return $httpcode == 200; 

These are just some methods of using the headers.

~ Corrected markdown
Source Link
Paul T. Rawkeen
  • 4.1k
  • 3
  • 38
  • 53

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request

 , and

$information = curl_getinfo($curl_exect); 

after the request View: http://www.php.net/manual/en/function.curl-getinfo.php

View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADERCURLOPT_HEADER in your setoptcurl_setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 
curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 

These are just some methods of using the headers.

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request

  and

$information = curl_getinfo($curl_exect); 

after the request View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 

These are just some methods of using the headers

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request, and

$information = curl_getinfo($curl_exect); 

after the request

View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your curl_setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 

These are just some methods of using the headers.

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true);
Source Link

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request

and

$information = curl_getinfo($curl_exect); 

Viewafter the request View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 

These are just some methods of using the headers

You can see the information regarding the transfer by doing:

$information = curl_getinfo($curl_exect); 

View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 

These are just some methods of using the headers

You can see the information regarding the transfer by doing:

curl_setopt($curl_exect, CURLINFO_HEADER_OUT, true); 

before the request

and

$information = curl_getinfo($curl_exect); 

after the request View: http://www.php.net/manual/en/function.curl-getinfo.php

You can also use the CURLOPT_HEADER in your setopt

curl_setopt($curl_exect, CURLOPT_HEADER, true); $httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE); if($httpcode == 200) { return true; } return false; 

These are just some methods of using the headers

Source Link
RobertPitt
  • 57.3k
  • 21
  • 117
  • 161
Loading