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

problem fetching the page : can anyone help me out

From:
Rahul Garg
Date:
October 9, 2001 06:01
Subject:
problem fetching the page : can anyone help me out
Message ID:
001601c150c3$6f3e8e60$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 => rahul,
                PageWanted =>http://www.abcd.com/xyz.asp?b=KV
                ];
 

The following fields are in the footer of the page(comments) that i fetch thru web
browser after filling in the email anfd passworld fields of form at url http://abcd.com/login/default.asp  

PageWanted - Session [/investments.asp?c=KVY0UBMH]              //This  is the page i actually want to fetch
LoggedIn - Session [1]
Password - Session [rahul]
AccountID - Session [113274]

 
Any suggestions for fetching the correct page.May be the asp server prog. using the session variables..how to handle it.
..how can i access it thru client side.

- working on linux.
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




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