It was thus said that the Great Tim Johnson once stated: > > Hello > > I need to programmatically connect to a cgi script at a domain > that is password protected. > Let's say the URL for the script is > http://www.somedomain.com/cgi-bin/py/dothis.py > and > http://www.somedomain.com is restricted access requiring a username and > password > > 1)Can I supply the user and password as variables? > Example: > http://www.somedomain.com/cgi-bin/py/dothis.py?uservariable=user&pwdvariable=pwd > If so: > a)What is the name of the user variable? > b)What is the name of the password variable? > c)Are any other parameters required? > > 2)What server-sider configuration if any is required? > > Pointers to relevant documentation is invited. > thank you If it's the web server that's requesting authentication (a browser will typically throw up a diaglog box asking for a username and password and if not given, or incorrect, you'll get an HTTP 403 error), then you'll need to read RFC-2616 and RFC-2617 [1]. Otherwise (if it's a CGI script that's doing the authentication) you'll need to figure out what the script wants and for that, you may want to start with the CGI spec [2] and possibly cookies [3]. -spc (There might be tutorials you can use, but I'm not sure which ones are good ) [1] Available at http://www.ietf.org/rfc/ [2] http://www.w3.org/CGI/ [3] http://wp.netscape.com/newsref/std/cookie_spec.html --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx