View Full Version : Posting via headers
04-30-2004, 12:18 PM
To send information via header("Location: /site/"); will redirect the user to a URL (in this case, the directory site). but this forward the person via the GET routine.
My question is, how do you forward someone and send information via the POST routine?
04-30-2004, 02:14 PM
Its not that simple for POST, you need to open a socket and format the data that way , there are samples somewhere in the manual , check out fsockopen (http://www.php.net/fsockopen) & also check out the sockets & streams functions
04-30-2004, 03:00 PM
Problem is i wanna do this for paypal. So its not exactly worth it doing it like that.
04-30-2004, 03:30 PM
well if you want to use POST you don't have much choice in the matter , checkout snoopy (http://snoopy.sourceforge.net) whixh makes such things a little easier.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.