Thanks for you help very first, but what I want is just very simple...... I suggest the way to get my job done like this :
use strict; use LWP::UserAgent; my $header = "Cookie: A=123;B=456\n"; $header .= "HTTP_REFERER = 'http://somewhere.com'"; my $url = http://somewhere.com/doc/file.shtml; my $ua = LWP::UserAgent -> new ; my $r = $ua -> get ( 'GET', $url, $header ); print $r -> headers; # shows the server respond headers print "\n\n"; print $r -> content; # shows the document content Of cause, this code is very very wrong.... it more looks like HTTP::Request... and might be mixed with something like HTTP::Headers, it looks like nothing at all anyway, but as I said, I really not familar with what the object is playing, so I don't know how to mix them up to use..... Is there any more sources or example codes good for me to learn ?? Thanks ----- Original Message ----- From: "Randy W. Sims" <[EMAIL PROTECTED]> To: "Bee" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 19, 2004 12:20 PM Subject: Re: A simple request need help > On 8/19/2004 12:06 AM, Bee wrote: > > > Hi, I have a script that ables to download sort of web pages automatically by > > certain time. I use LWP::UserAgent to get almostly my job done, but this time, > > I have a problem that the page require to send back cookies and http_referer... > > It there anyway I can do this with LWP ? or should I back to HTTP::Request ? > > or what ? I am not familiar with Object playing, so if there is a short piece of > > code can demostrate, that would be very nice. > > Is this what you're looking for: <http://tinyurl.com/4x7tg> ? > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>