BinBerliner has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use LWP::UserAgent; my $hdrs = new HTTP::Headers(Accept => 'text/plain', User-Agent => 'IE +/5.0'); my $ua = new LWP::UserAgent; get_url('http://www.friendscout.de/cgi-bin/pu_help.fcgi?id=1-d24-fL6sA +siUXoQo7uGcUZ6T6Hjs&page=loginp&nickname=JohnSmith&password=test&x=0& +y=0'); get_url('http://www.friendscout.de/cgi-bin/pu_login1.fcgi?password=tes +t&nickname=JohnSmith&?id=1-d24-fL6sAsiUXoQo7uGcUZ6T6Hjs&x=13&y=9'); sub get_url() { my $url2get = shift @_; my $url = new URI::URL($url2get); my $req = new HTTP::Request('GET', $url, $hdrs); my $resp = $ua->request($req); if ($resp->is_success) { printf "Good %s",$resp->content;} else { printf "Bad %s",$resp->message;} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with LWP, frames, login, and parent.main.location.replace()
by merlyn (Sage) on Mar 02, 2001 at 22:41 UTC | |
|
Solution for your problem with LWP, frames, login, and parent.main.location.replace()
by arhuman (Vicar) on Mar 02, 2001 at 23:32 UTC | |
by BinBerliner (Novice) on Mar 03, 2001 at 00:13 UTC | |
|
Re: Problem with LWP, frames, login, and parent.main.location.replace()
by Masem (Monsignor) on Mar 02, 2001 at 23:01 UTC | |
by BinBerliner (Novice) on Mar 02, 2001 at 23:07 UTC |