Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: json return value

by Corion (Pope)
on Jul 11, 2013 at 08:38 UTC ( #1043655=note: print w/ replies, xml ) Need Help??


in reply to json return value

Have you looked at the status code and the content of your response?

my $res= $ua->request($req); print $res->is_success ? "yay\n" : "error\n"; print sprintf "Status %d\n", $res->code; print $res->decoded_content;

Maybe the module is correct and you don't actually get JSON back, but an error message that starts with Can't connect to myurl....


Comment on Re: json return value
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (21)
As of 2014-10-30 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls