4 ms·
Well this is the exact script I was sent just 1 hour ago from PayPal themselves: PHP // post back to PayPal system to validate $header .="POST /cgi
by GigabyteCoin 14y ago
Well this is the exact script I was sent just 1 hour ago from PayPal themselves:
PHP
// post back to PayPal system to validate
$header .="POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .="Content-Type: application/x-www-form-urlencoded\r\n";
$header .="Host: 'www.paypal.com\r\n';;
That error in the last line is evident in Gmail's "show original" text as well.
How is it that I could be getting an incorrect script when other people are getting the correct one?
- dalke 14y agoBecause it's the correct script, but it doesn't refer to what you think it does. It's in the HTTP request that your code is supposed to send to PayPal. You need to make that be HTTP/1.1 compliant. It's not supposed to be in the user-facing code.
- eurleif 14y agoThere are two semicolons on the last line, and single-quotes that shouldn't be there.
- dalke 14y agoIndeed. And those are not in the version which I found elsewhere. My apologies for not seeing it the first time and for implying that the original poster did not understand things correctly. The email I was going on was posted to http://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=90677 http://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID... . This does not have the quotes nor the double semicolon, and is correct. So is the one at http://www.webassist.com/forums/showthread.php?t=27871 http://www.webassist.com/forums/showthread.php?t=27871 . However, the email posted to http://www.tipsandtricks-hq.com/forum/topic/paypal-updates-affecting-ipn-and-pdt-scripts http://www.tipsandtricks-hq.com/forum/topic/paypal-updates-a... does have that error. In that case, the Java is also malformed, saying uc.setRequestProperty("Host",;'www.paypal.com';); If this is a form of email corruption, it is not one I recognize.