Need help updating my site from http1.0 to http1.1 for paypal

2 replies
Hi,

I have an advertising site (Get Traffic For Life) that runs on the first version of mytrafficbusiness script and I need to update the script for paypal's update. I need to put some sort of code in a header somewhere for it to work with Paypal, and I have no idea how to do this.

Can someone know how to do this and help me?
#http10 #http11 #paypal #site #updating
  • Profile picture of the author kevbo22
    I haven't read to much into this, but it seems that the problem is that the new http1.1 in the IPN now has r/n in it. Try something like this:

    // 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 .="Connection: close\r\n\r\n";

    See this answer from stack overflow:
    http://stackoverflow.com/questions/1...82872#12682872
    Signature

    The best path to prosperity is free market capitalism!

    {{ DiscussionBoard.errors[8673661].message }}
  • Profile picture of the author kevbo22
    I just tested the above code on an old ipn script I had and it works. So just use that and you should be set!
    Signature

    The best path to prosperity is free market capitalism!

    {{ DiscussionBoard.errors[8673805].message }}

Trending Topics