2 replies
Hi,

I was wondering if someone could help me figure out what I need to change my IPN to for PayPal since they will be moving to HTTP 1.1 and not support HTTP 1.0 anymore.

Right now my IPN area they are saying I need to change looks like this.

// post back to PayPal system to validate
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);


Not sure what I need to keep or change as I'm not a programer any help would be great.

Thank You,
Chris
#change #ipn #paypal
  • Profile picture of the author Dan Grossman
    We can't help fix code we can't see. Like writing a book, there are infinite ways to write the same program -- I can't guess how your IPN handler looks.
    Signature
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[6979878].message }}
  • Profile picture of the author Jeremy Lebre
    Try this code:

    // 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";
    $fp = fsockopen('www.paypal.com', 80, $errno, $errstr, 30);
    {{ DiscussionBoard.errors[6980007].message }}

Trending Topics