I have a perl script that I use to retrieve web pages.  The script has 
the ability to use/send cookies, if the server requires them.

For example, in my perl script, to set the user name and password cookie 
for a website, I would use the following:

my $cookie_grabber = "http://www.website.com/cgi-
win/login.exe?username=tony&password=perl";

(the rest of the perl program is not shown)

Usually this will set the cookie info that I need, and then I can grab 
all of the web pages that I want, as I present the results from this 
cookie before each web page "get".

Also, I can test the $cookie_grabber URL to see if the login part works 
by putting the URL in a browser and hitting return.  A successful login 
will take me to whatever page normally follows a login.

However, I can not figure out how to use this with a program called 
"login.asp" where I can put the entire form command on one URL line, 
like:

http://www.website.com/login.asp?a=2&userid=tony&password=perl

Here is the form that is being used:

     <form ACTION="login.asp?a=2" METHOD="POST" NAME="LOGIN">
        
        Login Name  <input TYPE="TEXT" SIZE="10" NAME="USERID" value=""><br>
        
        Password <br> <input TYPE="PASSWORD" SIZE="10" NAME="PASSWORD" 
value=""><br>
        
        <input TYPE="checkbox" NAME="REMEMBER">Remember Login Info?<BR> <br>
        
        <input TYPE="SUBMIT" VALUE="Login" NAME="SUBMIT"><br>

     </form>

I have tried every variation of this, but I can't figure it out.

Any help is appreciated!

Thanks,

Tony D

Reply via email to