Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Web service called with wrong parameter

by castaway (Parson)
on Sep 14, 2015 at 12:21 UTC ( [id://1141918]=note: print w/replies, xml ) Need Help??


in reply to Web service called with wrong parameter

I assume you've tested that $photo is what you expect it to be?

What do you get in $imgfile? Have you looked at $res->is_success or $res->code? (just dumping the whole $res object is a useful debugging aid).

My guess would be that you need to tell the backend what types of image files you will take, eg $ua->default_header('Accept' => 'image/jpeg')

As Corion says. open the debugger in your browser, and look to see which headers the browser sends/gets when you ask it to get that image URL

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1141918]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found