Page 1 of 1

Headers (not a "won't work" question)

Posted: Sat Mar 08, 2003 1:28 pm
by uberpolak
I tried to figure this out through w3c's documentation on HTTP 1.1, but it was a little over my head. I'm trying to send POST headers with the header() function. I don't know how to do this or if it is even possible, can anybody help me out with this?

Posted: Sat Mar 08, 2003 1:41 pm
by jason
Your trying to "send" a post header to another page, correct?

If that is the case, you are using the wrong function.

Look here:
http://www.php.net/manual/en/function.fsockopen.php

It gives a sample of how to accomplish it.

Posted: Sat Mar 08, 2003 2:00 pm
by uberpolak
Ahh, sockets, powerful stuff, thanks, this is very helpful.