Jump to content

getting response headers


mraza

Recommended Posts

Hi i wants to know how i can get headers to display on page, for example if i visit to

www.thissite.com

i see in headers with livehttpheaders it is also showing some more URL's and keep refreshing even i am on that page like

www.pic.thissite.com
video.thissite.com
css.thissite.com

 

So i wants to extract that URL's from headers with curl. Please any support.

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/208571-getting-response-headers/
Share on other sites

Thanks for qucik help but i get this error

 

Fatal error: Call to undefined function http_parse_message() in /home/admin/mysite.com/test2.php on line 4

 

my code

<?php 
error_reporting(E_ALL);
ini_set("display_errors", 1); 
print_r(http_parse_message(http_get('http://www.site.com'))->headers);
?>

 

i guess need to compile something , is not there any other way that does not include any server configuration?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.