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