Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 chilling in the Monastery: (16)
As of 2015-07-30 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls