[fpc-pascal] fpweb and http authentication
Hello, How can I create http authentication using fpWeb ? I found on WWWAuthenticate, but I do not understand how to use it. Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpweb and http authentication
On Wed, 15 Jun 2011, ik wrote: Hello, How can I create http authentication using fpWeb ? I found on WWWAuthenticate, but I do not understand how to use it. Check the Authorization header. If it does not contain a valid authentication, you just have to send a 401 response code and include a WWW-Authenticate header field describing the authentication: http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43 this will tell the browser to ask a username/password. If the Authorization header contains a valid authentication, then proceed as normal. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpweb and http authentication
On Wed, Jun 15, 2011 at 12:12, michael.vancann...@wisa.be wrote: On Wed, 15 Jun 2011, ik wrote: Hello, How can I create http authentication using fpWeb ? I found on WWWAuthenticate, but I do not understand how to use it. Check the Authorization header. If it does not contain a valid authentication, you just have to send a 401 response code and include a WWW-Authenticate header field describing the authentication: http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43 this will tell the browser to ask a username/password. If the Authorization header contains a valid authentication, then proceed as normal. How can I make it to prompt for Authentication and how can I make it both BASIC and Digest authentication ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpweb and http authentication
On Wed, 15 Jun 2011, ik wrote: On Wed, Jun 15, 2011 at 12:12, michael.vancann...@wisa.be wrote: On Wed, 15 Jun 2011, ik wrote: Hello, How can I create http authentication using fpWeb ? I found on WWWAuthenticate, but I do not understand how to use it. Check the Authorization header. If it does not contain a valid authentication, you just have to send a 401 response code and include a WWW-Authenticate header field describing the authentication: http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43 this will tell the browser to ask a username/password. If the Authorization header contains a valid authentication, then proceed as normal. How can I make it to prompt for Authentication and how can I make it both BASIC and Digest authentication ? It is described in the URL cited above. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpweb and http authentication
On Wed, Jun 15, 2011 at 12:42, michael.vancann...@wisa.be wrote: On Wed, 15 Jun 2011, ik wrote: On Wed, Jun 15, 2011 at 12:12, michael.vancann...@wisa.be wrote: On Wed, 15 Jun 2011, ik wrote: Hello, How can I create http authentication using fpWeb ? I found on WWWAuthenticate, but I do not understand how to use it. Check the Authorization header. If it does not contain a valid authentication, you just have to send a 401 response code and include a WWW-Authenticate header field describing the authentication: http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43 this will tell the browser to ask a username/password. If the Authorization header contains a valid authentication, then proceed as normal. How can I make it to prompt for Authentication and how can I make it both BASIC and Digest authentication ? It is described in the URL cited above. So It's not implemented at the moment ? Michael. Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal