Hi,

I am wondering if i provide sufficient header(using
refer,agent) and cookie, is it enough to fool the
server side(http) so that it thinks i am coming from
browser not LWP or others( with some download program
flashget etc, i can set my own agent,refer)?
i want to know if there is other thing i need to know
to ger around with it.

thx.

by the way, i asked a cookie question
http:[EMAIL PROTECTED]/msg03818.html
days ago. Gisle 's answer seems to mean that the way i
am using is correct or sufficient to get cookie. but i
sitll get no go at all.  anyone can help? 

###########################
here is the question again:

Hi,

I am testing a simple script to grab cookie. however
there is only one line as "#LWP-Cookies-1.0" in the
saved file. what's wrong?

here is the script

use LWP::UserAgent;
use HTTP::Cookies;
$cookie = new HTTP::Cookies;
$ua = new LWP::UserAgent;
$ua->agent("Mozilla/4.7");

$ua->cookie_jar(HTTP::Cookies->new(file=>'t.txt',autosave=>1));

$base_url='http://fwcgames.yahoo.com/cocacola';
my $response=$ua->request(new HTTP::Request 'GET' =>
$base_url);
unless ( $response->is_success ) {
       print "Error: " . $response->status_line .
"\n";
}

thanks!

James


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

Reply via email to