Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 avoiding work at the Monastery: (7)
As of 2014-12-20 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls