opensourcer has asked for the wisdom of the Perl Monks concerning the following question:
and lwp sends something like the followinghttps://logindel.tataindicombroadband.in:8443/user/refresh/home?user=x +xxxxxxx&ServerList=vsnl.net&save=2&imageField.y=21&mageField.x=31&t=f +lcwmm4m',
I want to remove the jsession. my code'location' => 'https://logindel.tataindicombroadband.in:8443/user/refr +esh/home;jsessionid=z6toaqyuja0p?user=xxxxxx&ServerList=vsnl.net&t=fl +cx2pnr',
$uri = ""https://logindel.tataindicombroadband.in:8443/user/refresh/ho +me"; use LWP::UserAgent; use HTTP::Cookies; my $ua = LWP::UserAgent->new(keep_alive => 300); $ua->agent("MyBrowser 8.0"); my $cookie_jar = HTTP::Cookies->new( file => $Config::cookie, autosave => 1, ); $ua->cookie_jar($cookie_jar); print "1\n"; my $req = $ua->post($uri, ["user" => $username, "username" => $username, "password" => $password, "ServerList" => "vsnl.net", ]); die unless $req->is_success; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: lwp+w/o jsessionid
by ikegami (Patriarch) on Sep 21, 2008 at 01:57 UTC | |
by opensourcer (Monk) on Sep 21, 2008 at 04:06 UTC | |
by ikegami (Patriarch) on Sep 21, 2008 at 04:25 UTC |