Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to resolve bad hostname error message

by haukex (Bishop)
on May 02, 2017 at 16:51 UTC ( #1189331=note: print w/replies, xml ) Need Help??


in reply to How to resolve bad hostname error message

I can successfully ping securities.stanford.edu ... Can't connect to www.securities.stanford.edu:80 (Bad hostname)

Note the different hostnames. From here, I can resolve securities.stanford.edu, but not www.securities.stanford.edu. Try changing your code to my $get_file = "http://securities.stanford.edu/...

Replies are listed 'Best First'.
Re^2: How to resolve bad hostname error message
by rachard11 (Acolyte) on May 02, 2017 at 18:03 UTC
    Wow--that seems to have gotten around the problem. I didn't realize removing the www. would make a difference. Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2022-01-21 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (58 votes). Check out past polls.

    Notices?