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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.