On Sunday, June 30, 2002, at 02:15 , Robert Dohrenburg wrote:

> Hi,
>
> I'm trying to log into a protected resource using a custom form instead of
> the default browser login box.
>
> I found a shareware script called csPassword (
> http://www.cgiscript.net/site_apps.htm ) but the script is an overkill for
> my needs. Is there a simple way to login into a protected resource with a
> perl script? All I need is to enter the userid and the password and then 
> be
> redirected to the resource.

have you looked at the perldocs on CGI.pm

since it sounds like you want to have something like:

      CREATING A PASSWORD FIELD

           print $query->password_field(-name=>'secret',
                                        -value=>'starting value',
                                        -size=>50,
                                        -maxlength=>80);
                -or-

           print $query->password_field('secret','starting value',50,80);

        password_field() is identical to textfield(), except that
        its contents will be starred out on the web page.

and then you are off to validating that the stuff returned
in that actually associates with the stuff you got back from
the


            print $query->textfield(-name=>'user_name',
                                    -default=>'starting value',
                                    -override=>1,
                                    -size=>50,
                                    -maxlength=>80);


actually worked as a 'username' and 'passwd'....

There are some other tidBits that you may want to think about,
since I believe that comes across in 'flat' text that any
packet muncher could track... So you will probably want to
deal with things like

        "how do I encrypt passwds"

cf: things like:

http://www.w3.org/Security/Faq/wwwsf4.html

HTH....



ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to