develooper Front page | perl.libwww | Postings from October 2001

problem fetching the page

Thread Next
From:
Rahul Garg
Date:
October 2, 2001 22:41
Subject:
problem fetching the page
Message ID:
001601c14bce$ea36f160$1900a8c0@shakti

i want to automate the form and want to access /xyz.asp?b=KV page.
after filling in correct email and  password fields i am not able to access the page , instead i get the http://abcd.com/login/default.asp  page.

i am requesting like this-
my $req = POST 'http://www.abcd.com/log-in/def.asp',
               [ Email => 'xyz@abcd.com',
                 Password => raj,
                PageWanted =>http://www.abcd.com/xyz.asp?b=KV
                ];

Any suggestions for fetching the correct page.May be the asp server prog. using the session variables..how to handle it.

the eg source code for form( assume the form is syntactically correct)present in http://www.abcd.com/log-in/def.asp is given below--

<form action="http://abcd.com/log-in/def.asp" method="post">
label-Email
<input type="text" value="" name="Email">

label-Password
<input type="password"  value="" name="Password">

<input type="checkbox" name="Cookie" id="Cookie">&nbsp;
<label for="Cookie">Check  box  if u want   e-mail address and pass word stored for automatic signin </label>

<input type="hidden" name="PageWanted" value="/xyz.asp?b=KV">
<input type="hidden" name="Buttonenter" value="enter">
<input type="hidden" name="cancelRe-direct" value="/">
<input type="submit" value="enter">&nbsp;
<input type="submit" name="Buttoncancel" value="cancel">&nbsp;
<input type="submit" name="ButtonE-mailPasword" value="E-mailPasword">
</form>

Thanks,
Rahul


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About