Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: LWP not POSTING (400 Bad Request)

by Gangabass (Vicar)
on Apr 03, 2016 at 10:15 UTC ( [id://1159416] : note . print w/replies, xml ) Need Help??


in reply to LWP not POSTING (400 Bad Request)

Can you post Paw's Headers and Content here?

The first thing is wrong that you're posting to http://photos.mysite.com/api/1/upload/ in your code but to the

http://photos.mysite.com/api/1/upload/?key +=xxxx&format=json&source=http%3A%2F%2Fphotos.mysite.com%2F128.jpg
from the Paw...

But the most interesting thing will be POST content from the Paw...

Replies are listed 'Best First'.
Re^2: LWP not POSTING (400 Bad Request)
by HollyWould (Initiate) on Apr 03, 2016 at 11:29 UTC
    Hi Gangabass - Thanks for the reply. Yes, the URI is incorrect. This has been corrected. Thanks.