This is a discussion on "Dump actual header" within the PHP Forum section. This forum, and the thread "Dump actual header are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Dump actual header
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Dump actual header
Using PHP is there a way to print out the actual header that was sent to the server or can you only access the ones from $_SERVER?
I'm doing some header development and seeing what I can do. Thanks.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|
|
#2
|
||||
|
||||
|
Re: Dump actual header
Also if anyone knows of a list of all the headers that can be sent to the server and all the headers that can be sent to the client from the server, please post it!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#3
|
||||
|
||||
|
Re: Dump actual header
Provided php has ben built with apache you can use
$headers = getallheaders(); As for the list of headers, you are basically asking for the entire HTTP protocol As always, W3 can help you here. That is the HTTP 1.1 headers list.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Last edited by Rakuli; Jan 23rd, 2008 at 07:35. |
|
#4
|
||||
|
||||
|
Re: Dump actual header
Thanks, I'll experiment with that now!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
||||
|
||||
|
Re: Dump actual header
Okay I didn't expect it to work on my server but I uploaded it to Jacob's (apache) and it says it doesn't exist.
There's no other way to do this is there?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#6
|
||||
|
||||
|
Re: Dump actual header
Try apache_request_headers()..
Php needs to be installed as an apache module for this to work. I don't know any other ways.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#7
|
||||
|
||||
|
Re: Dump actual header
Damn it doesn't work.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using an actual variable in function params? | Jack Franklin | PHP Forum | 1 | Mar 11th, 2008 18:06 |
| Can I force IE to open img at actual size? | billysalisbury | PHP Forum | 11 | Oct 26th, 2007 16:16 |
| Displaying the actual URL on page | shockbeton | Web Page Design | 9 | Jun 22nd, 2006 18:35 |
| looking for new dog & cat header | mizbuffie | Graphics and 3D | 6 | Jun 18th, 2006 22:49 |
| Fastest way to dump a table contents? | u2orange | Databases | 6 | Mar 1st, 2004 20:43 |