Paypal Update Requires Fix for Websites to Keep Working



paypalWe got a notification from Paypal recently that they are updating their API on October 7th 2013, which may cause your website’s ecommerce to stop working if you are  using Paypal to accept payment online.

This will affect sites running OSCommerce, X-Cart, older versions of WooCommerce (make sure to update your install!) and other shopping cart systems as well as custom solutions.

If you think you may be affected by this update by Paypal, you will need to get a developer to address this issue assuming you continue to use Paypal. We are more than happy to address this for you.

Contact us if you would like us to implement the fix/update for you.

You can see Paypal’s email notice below with the details:

In a bulletin dated October 18, 2011, we announced that we were going to expand the number of IP addresses for to improve our site’s performance, scalability and availability. As part of this transition, we planned to discontinue support for HTTP 1.0 protocol starting October 7, 2013.
We have recently identified that this change may impact the ability of some of our merchants to perform IPN (Instant Payment Notification) post-back validation or PDT (Payment Data Transfer) posts to and This happens when the IPN or PDT scripts use HTTP 1.0 protocol and do not include the “Host:” or “Host:” header in the HTTP request.

Additional Details

Starting October 7, 2013, we will require all incoming requests to have a “Host” header which complies with HTTP 1.1 Specifications. This header was not required under HTTP 1.0. IPN and PDT scripts using HTTP 1.0 may start failing with “HTTP/1.0 400 Bad Request” errors afterOctober 7, 2013, which will result in IPN messages not being validated successfully, or PDT scripts not being able to retrieve transaction information.

Action Required before October 7, 2013

Merchants need to update their IPN and/or PDT scripts to use HTTP 1.1, and include the “Host” and “Connection: close” HTTP header in the IPN postback script.
Example with Host as (please make necessary changes if you are


//Set values for the request back

$req=HTTP::Request->new(‘POST’, ‘’);
$req->header(Host=> ‘‘);
$req->header(Connection=> ‘close’);
// 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:\r\n”;
$header .=”Connection: close\r\n\r\n”;


HttpsURLConnection  uc=(HttpsURLConnection) u.openConnection();
uc.setRequestProperty(“Host”, ““);
uc.setRequestProperty(“Connection”, “Close”);
The PayPal Sandbox has been configured to reject any HTTP requests without the “Host” header with HTTP 400 error. Merchants can use the Sandbox environment to certify the changes to their IPN and PDT scripts.
For more information on PDT and IPN, please refer to and For additional information or questions about this change, please contact PayPal’s Merchant Technical Support team via



Get our
monthly tech
tips FREE!

site feed

recent posts

Why choose Page Progressive?

Page Progressive provides an effective collaborative environment for web site development. They are creative, flexible, and responsive to the needs of the end user.

Jay Levine, DVM, Raleigh, NC

Client Access

back to top

Free Estimates!

Still not convinced? Contact us for a free estimate and we’ll examine everything up and down and show you how we can develop a solution for you and even help you market your idea online.

Our estimates are always free,
so why wait?

Call us now at
919-374-3014 or fill out our
contact form to get started!