httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Sean Conner)
Subject Re: [users@httpd] Providing pwd&usr with cgi URL
Date Wed, 22 Feb 2006 01:24:14 GMT
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
> and
> is restricted access requiring a username and
> password
> 1)Can I supply the user and password as variables?
>   Example:
>   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



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message