Headers (not a "won't work" 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
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

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

Post 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?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post 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.
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

Ahh, sockets, powerful stuff, thanks, this is very helpful.
Post Reply