Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: LWP SSL Question

by hippo (Vicar)
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 lurking in the Monastery: (14)
As of 2015-07-06 19:14 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 (81 votes), past polls