Hi, Joe.
I haven't got an answer to your question as I've just started using
libwww.
I really wanted to say the newshub.com is a really great application! I'd
like to do something similar with weather satellite images. Libwww is a
solution looking for a problem.
I tried accessing http://newshub.com the way I normally do using a
shortcut that has always worked in the past. That is by typing
newshub.com without http:// in Netscape's location field. Why doesn't that
work?
One last question - I'm new to the list. I posted a question recently. I
haven't received it as yet. I don't know that it made it to the list. Is
that normal for this list? If not, how long does it take for messages to
get circulated?
I should mention that I sent a message before subscribing. Now that I'm
subscirbed I do hope to see this in my inbox shortly. :)
Mick
On 16 Apr 97 at 23:32, Joe McDonald wrote:
>
> If I grab Netscape's home page and spit it out via:
>
> $h = parse_html($res->content);
> print $h->as_HTML();
>
> It fails to include the javascript and messes up the body tag. Is this a
> bug, or am I missing something (I'm probably missing something). I am
> using ver 5.05 on "perl 5.003 with EMBED"
>
> Here is a small proggie that will *not* return the same content that
> http://www.netscape.com does:
>
> ------------------------------------
> #!/usr/local/bin/perl5
> use LWP::UserAgent;
> use HTML::Parse;
>
> $url = "http://www.netscape.com/";
>
> $ua = new LWP::UserAgent;
> $ua->agent("Mozilla/3.0 (Win95; I)");
>
>
> $req = new HTTP::Request 'GET', $url;
> $req->header('Accept' => 'text/html');
>
> $res = $ua->request($req);
>
> if ($res->is_success) {
> $h = parse_html($res->content);
> print $h->as_HTML();
> #print $res->content;
> } else {
> print "Request failed...\n";
> }
> ------------------------------------
>
> Thanks,
> -joe
>
> P.S. NewsHub is driven by libwww -- my thanks to Gisle and team!
>
> =========================================================================
> ====
> * NewsHub: Updated every 15 minutes/24 hours a day! *
> http://newshub.com/