On Sunday, Jul 27, 2003, at 17:56 US/Pacific, Luinrandir Hernsen wrote: [..]

$webcode = "www.webpage.com";


Is this how a put the code of a web page into a string?
[..]

when you say 'code' what does that word mean to you?

Allow me to illustrate my problem here if I can,

$host_port = 'www.wetware.com';

would be a way to get the string 'www.webpage.com'

but in itself it is not a 'full' "web site value"
that I might be able to use with the LWP::UserAgent.

my $ua = LWP::UserAgent->new();

my $response = $ua->get($host_port);

but were I to do something like say

        my $url = URI->new();
        
        $url->scheme('http');
        $url->host($host_port);
        $url->path('/drieux');

my $response = $ua->get($url->as_string());

would get you my 'home page' of that site.

So it's rather important which part of that process
you were trying to 'solve'.

cf perldoc URI
        perldoc LWP::UserAgent


ciao drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to