mraza Posted July 22, 2010 Share Posted July 22, 2010 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 More sharing options...
AbraCadaver Posted July 22, 2010 Share Posted July 22, 2010 print_r(http_parse_message(http_get('http://www.example.com'))->headers); Link to comment https://forums.phpfreaks.com/topic/208571-getting-response-headers/#findComment-1089722 Share on other sites More sharing options...
mraza Posted July 22, 2010 Author Share Posted July 22, 2010 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 Link to comment https://forums.phpfreaks.com/topic/208571-getting-response-headers/#findComment-1089726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.