Page 1 of 1

header() question ...

Posted: Thu Aug 14, 2003 3:18 pm
by zick
ok, i would consider this advanced ... if i'm wrong, that's cool. my question is in regards to the header() function. i'm wonderring if anyone has a list or knows where to find a list of all the options that can set here ... i know of a couple, like "location: new-url.com" and "content-type: image/gif" ... more importantly i'm looking for how to set POST (in the HTTP header, not the end of the URL) variables with this function so that i can catch them later with $_POST["var"];
anyone know how this can be done? thanks for any pheedback phine phorum pholks ...
-zick

Posted: Thu Aug 14, 2003 3:51 pm
by JayBird
The PHP manual could be a good place to start

http://uk.php.net/manual/en/function.header.php

Check it out

Mark

Posted: Thu Aug 14, 2003 4:15 pm
by hedge
check out this recent thead for an idea of some other headers.

viewtopic.php?t=5472&highlight=

BTW, what you want to do is not possible with headers. the data 'POST'ed is not in the headers it is the content as you'll see from the above link.

Posted: Thu Aug 14, 2003 7:03 pm
by McGruff
This is more what the advanced forum is for: viewtopic.php?t=10077

I appreciate it's hard to tell from context what sort of stuff should go in here since this board is increasingly filling up with basic queries.

Posted: Thu Aug 14, 2003 8:15 pm
by MrNonchalant
The HTTP protocol list of valid responce headers:

http://www.w3.org/Protocols/HTTP/Object_Headers.html