> -----Original Message-----
> From: Edward B Buford [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: CGI?
> 
> 
> I work for a Library and have been asked to write a script, that will
> allow
> us to enter a user name and password and execute the login button for
> several
> password protected web sites.  The web sites monitor the concurrent
> number of
> users and limit them to 2, so we are not worried about being in
> violation of 
> the end users agreement. What we are worried about is people 
> passing the 
> username and password around to friends off campus. I have much
> experience 
> with VB6, but have very little experience with any scripting 
> language. I
> have
> played with perl and have only used it for pulling 
> information out of a
> list.
> I am working with Perl to learn this language, but the task that I'm
> faced 
> with is far beyond my novice level. Therefore I am appealing 
> to you who
> know
> how to offer examples, required reading, and any help possible.

What you are describing is a proxy. Your program is going to have to:

1. Receive a request from the user
2. Add the necessary authentication credentials
3. Submit the request to the "real" web site
4. Receive the response
5. Fixup links so subsequent requests are directed to your script
6. Return the response to the user.

It's more than just "pressing the logon button", as authentication
credentials will need to be passed with each request, typically via
the "Authorization" request header or via a cookie.

Possible starting points:

http://www.stonehenge.com/merlyn/WebTechniques/col32.html
http://www.jmarshall.com/tools/cgiproxy/

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

Reply via email to