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 Quote Link to comment 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); Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.