<div dir="ltr"><div class="gmail_quote">On Wed, Jun 15, 2011 at 12:12, <span dir="ltr"><<a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
On Wed, 15 Jun 2011, ik wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
How can I create http authentication using fpWeb ?<br>
<br>
I found on WWWAuthenticate, but I do not understand how to use it.<br>
</blockquote>
<br></div>
Check the Authorization header. If it does not contain a valid<br>
authentication, you just have to send a 401 response code and include a<br>
WWW-Authenticate header field describing the authentication:<br>
<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43" target="_blank">http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43</a><br>
this will tell the browser to ask a username/password.<br>
<br>
If the Authorization header contains a valid authentication, then proceed as normal.<br></blockquote><div><br>How can I make it to prompt for Authentication and how can I make it both BASIC and Digest authentication ?<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Michael.<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br><br>Ido<br></div>