How to get all server headers like Live http Headers does


Posted on 16th Feb 2014 07:03 pm by admin

Hey all, like many of you I use the Firefox addon "Live http Headers". I'm trying to write a tool that will basically do the same thing, but web-based... so the user would enter a URL and the tool would spit out the same output that Live http Headers would have shown if you were capturing them using it.

Problem is, sometimes the output from Live http Headers contains many requests of different types, for different things, on different servers. The PHP code I've been able to find in the manual pertaining to headers really only returns one (the last one).

Did you know?Explore Trending and Topic pages for more stories like this.
What function should I be looking at if I want it to spit out ALL of the headers and requests, a-la the Firefox addon?
No comments posted yet

Your Answer:

Login to answer
144 Like 14 Dislike
Previous forums Next forums
Other forums

for loop without same $i digits?
Hi,

Can some guru please advise how can I accomplish this with a simple for loop ?

I

md5 is it unique
I know this is most likely one of many simple questions that can be found semi easily. But I'm press

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

Just wondering what you think about my site
I am new to phpfreaks i just seen this form and thought it would be cool to see what other thought a

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

Need PHP help... have all the elements... just need help putting them together :
Hey Guys,

I was wondering if someone could help me. I am doing a website for a client which

Help: calling function
Hi,
Is it possible to call a php function on page close?
If yes, could you explain how and whe

Rss feed question
Hi

My blog and my website are different. Am i able to take my rss feed
from my blog and p

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

I would like "for" to wait 5 sec
I would like my 'for' loop to wait 5 sec before second iteration.


for ($i=0; $i<10

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash