Re: lwp POST and proxies
- From: Guasco <bisonho123456@xxxxxxxxx>
- Date: Wed, 12 Dec 2007 07:29:17 -0800 (PST)
Hi,
there is no post fields, and the link dont appear a post method.
try use get method
# my $req = HTTP::Request->new(POST => "http://10.10.20.100/login.jsp?
# UserID=$name&Password=password&x=27&y=28");
# $req->content_type('application/x-www-form-urlencoded');
#
# my $response = $browser->request($req);
my $response = $browser->get("http://10.10.20.100/login.jsp? UserID=
$name&Password=password&x=27&y=28");
if it is a real post method then
my $req = HTTP::Request->new(POST => "http://10.10.20.100/
login.jsp",
["UserID",$name,"Password","password","x","27","y","28"]);
#array with field name, values
.
- References:
- lwp POST and proxies
- From: sil
- lwp POST and proxies
- Prev by Date: Regular expression for matching words containing underscore _ character
- Next by Date: Re: Stupid Mistakes
- Previous by thread: Re: lwp POST and proxies
- Next by thread: Stupid Mistakes
- Index(es):