4 ms·
I also got the email and noticed the same errors that were mentioned here. I tried to fix it to how it 'should' be, but it still doesn't seem to be working. Has
by jeffprom 14y ago
I also got the email and noticed the same errors that were mentioned here. I tried to fix it to how it 'should' be, but it still doesn't seem to be working. Has anyone else gotten theirs to work? Here is what I have:
// 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";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
- ugniss 14y agoIf you add $header .= "Connection: close\r\n"; it will work.
- jeffprom 14y agoThank you! I added this, as well as checking for VERIFIED\r\n and it worked. Thanks guys!
- twiceler 14y agoAfter fixing the header typo the other thing my script needed to do was watch for "VERIFIED\r\n" then close the socket itself. Not just "VERIFIED" and the socket being closed by the server. A longer explanation, http://jimlowrey.blogspot.com/2012/09/subject-action-required-update-your.html http://jimlowrey.blogspot.com/2012/09/subject-action-require...