tc/paypal_adaptive — Issue #45: Paypal Sandbox server down
Author: jalvarezsamayoa
Created: 2012-03-04 04:09:48+00:00
State: open

The last couple of days we've being getting this error from our ci server.

```ruby
JSON::ParserError:
756: unexpected token at '

502 Proxy Error

Proxy Error

The proxy server received an invalid
response from an upstream server.

The proxy server could not handle the request POST /AdaptivePayments/CancelPreapproval.

Reason: Error reading from remote server

```

I believe that this is caused by Request#post not being able to handle this 502 error from PayPal

https://github.com/tc/paypal_adaptive/blob/master/lib/paypal_adaptive/request.rb#L95

Would you accept a pull request to have this method throw a Net:HTTP exception just for this case?