You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jeff Dever <js...@sympatico.ca> on 2002/07/17 03:03:41 UTC
[httpclient][patch] Preemptive authorization
Hey guys,
Here is a patch for adding preemptive authorization to the request
header before receiving a WWW-Authenticate header. Currently only the
default credentials are sent back, but in the future It will conform
more closely to the spec:
<cite href="ftp://ftp.isi.edu/in-notes/rfc2617.txt">
A client SHOULD assume that all paths at or deeper than the depth of
the last symbolic element in the path field of the Request-URI also
are within the protection space specified by the Basic realm value of
the current challenge. A client MAY preemptively send the
corresponding Authorization header with requests for resources in
that space without receipt of another challenge from the server.
Similarly, when a client sends a request to a proxy, it may reuse a
userid and password in the Proxy-Authorization header field without
receiving another challenge from the proxy server. See section 4 for
security considerations associated with Basic authentication.
</cite>
Sorry that the patch is a bit messy, I have spent quite a few days
working on this and have had to work around others patches.