Skip Menu |

This queue is for tickets about the Net-PayPal CPAN distribution.

Report information
The Basics
Id: 96691
Status: new
Priority: 0/
Queue: Net-PayPal

People
Owner: Nobody in particular
Requestors: david [...] surf4.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net::PayPal does not set content type
Date: Tue, 24 Jun 2014 13:34:31 -0400
To: bug-Net-PayPal [...] rt.cpan.org
From: David Scott <david [...] surf4.net>
Authorization failed : 400 Bad Request, {"name":"INVALID_HTTP_REQUEST","message":"Content type may not be null","information_link":"https://api.sandbox.paypal.com/docs/api/#INVALID_HTTP_REQUEST","debug_id":"d43f86cd03f15"} here is the fix: my $h = HTTP::Headers->new( 'Content-Type'=>"application/x-www-form-urlencoded", Accept => "application/json", 'Accept-Language' => 'en_US' ); -- David Scott *Scott Creative Services, Inc.* 805 Maxwell Drive Niskayuna, NY 12309 760-944-0622 518-557-0388