News for hackers. Stuff that matters.
Re:PayPal just told customers to incorrectly update their IP... by jeffprom on Thursday September 13, 2012 @01:18PM (#4517370)
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);

Re:PayPal just told customers to incorrectly update their IP... by twiceler on Monday September 17, 2012 @03:09AM (#4531552)
After 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-require...

Re:PayPal just told customers to incorrectly update their IP... by ugniss on Friday September 14, 2012 @11:01AM (#4521949)
If you add $header .= "Connection: close\r\n";

it will work.

Re:PayPal just told customers to incorrectly update their IP... by jeffprom on Monday September 17, 2012 @03:47PM (#4534480)
Thank you! I added this, as well as checking for VERIFIED\r\n and it worked. Thanks guys!