Re: Returning entire POST

From: Date: Thu, 11 Oct 2001 05:01:42 +0000
Subject: Re: Returning entire POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70757@lists.php.net to get a copy of this message
you can serialize the entire array $HTTP_POST_VARS, then urlencode() it, and pass it wherever. you could also mcrypt() it after serialize() and then urlencode() it and then pass it wherever. This way, the contents would be more secure. Also, you could just use base64_encode() - less secure, but completely unreadable by the human eye. $datatogo = urlencode(base64_encode(serialize($HTTP_POST_VARS))); $aPostVars = unserialize(base64_decode(urldecode($incoming_data))); http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php http://www.php.net/manual/en/function.urlencode.php http://www.php.net/manual/en/function.urldecode.php http://www.php.net/manual/en/ref.mcrypt.php http://www.php.net/manual/en/function.base64-encode.php http://www.php.net/manual/en/function.base64-decode.php -Jason Garber IonZoft.com At 09:19 PM 10/10/2001 -0500, Kurt wrote:
Using PHP on an Apache server, how do I capture and forward the entire contents of a POST exactly as it came in. Those familiar with paypal know that they offer the "Instant Payment Notification" where the paypal server will submit (to a predetermined page on your server) a POST containing all the variables and values of the paypal transaction. Instant Payment Notification then requires the page to return the entire POST exactly as it is received with one extra key/value on the end of it (for validation of information contained). What I'm looking for is something similar to the $QUERY_STRING or something to that nature. I can break apart the POST using $HTTP_POST_VARS and then re-assemble it as a string and then URL encode it, but I'm not guaranteed that it is EXACTLY like the original. Any ideas? Anyone ever used PHP for the PayPal Instant Payment Notification script? Thanks in advance, Kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#70757) next »