Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 cooling their heels in the Monastery: (14)
As of 2014-09-19 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (142 votes), past polls