Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Access webpage

by Loops (Curate)
on Apr 04, 2013 at 23:32 UTC ( #1027048=note: print w/ replies, xml ) Need Help??


in reply to Access webpage

Howdy, your syntax is just a little off:

use IO::All; my $html < io->http("http://hgdownload.soe.ucsc.edu/database:80");

Note that the "io" is in lowercase, not upper as in your example. You also need the "->http" method, and "http://" prefix in your url.

Also, you'll have to ensure that you have the IO::All::LWP module installed.


Comment on Re: Access webpage
Download Code
Replies are listed 'Best First'.
Re^2: Access webpage
by CountOrlok (Friar) on Apr 05, 2013 at 03:14 UTC
    The original URL is mangled:
    use IO::All; my $html < io->http("http://hgdownload.soe.ucsc.edu:80/goldenpath/hg19 +/database");
    The :80 needs to be after the domain name, but is redundant. It is only needed if it is not port 80.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027048]
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: (10)
As of 2015-08-01 00:57 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 (285 votes), past polls