header() question ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zick
Forum Commoner
Posts: 33
Joined: Thu Aug 14, 2003 3:18 pm

header() question ...

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post 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.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
User avatar
MrNonchalant
Forum Commoner
Posts: 29
Joined: Wed Jul 17, 2002 2:15 am

Post by MrNonchalant »

The HTTP protocol list of valid responce headers:

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