Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: LWP SSL Question

by hippo (Curate)
on Jun 06, 2014 at 16:36 UTC ( #1089062=note: print w/ replies, xml ) Need Help??


in reply to LWP SSL Question

It's worse than that - your code doesn't even compile.

Global symbol "$ua" requires explicit package name at 1089058.pl line +9. Global symbol "$ua" requires explicit package name at 1089058.pl line +10. Global symbol "$req" requires explicit package name at 1089058.pl line + 11. Global symbol "$req" requires explicit package name at 1089058.pl line + 12. Global symbol "$res" requires explicit package name at 1089058.pl line + 13. Global symbol "$ua" requires explicit package name at 1089058.pl line +13. Global symbol "$req" requires explicit package name at 1089058.pl line + 13. Global symbol "$res" requires explicit package name at 1089058.pl line + 14. Execution of 1089058.pl aborted due to compilation errors.

But, once I fixed those, it works fine for me using real values for $host and $port. As taint says, check the error log on your local server to see where the problem lies.

Update: Parent post has been altered and the source now compiles as-is.


Comment on Re: LWP SSL Question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-12-18 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (67 votes), past polls