Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] HTTP authentication support

From: Elliotte Harold <elharo@--------------->
To:
Date: 9/3/2007 5:50:00 PM
Colin Paul Adams wrote:
"Elliotte" == Elliotte Harold <elharo@xxxxxxxxxxxxxxx> writes:

    Elliotte> Which, if any, processors support HTTP authentication in
    Elliotte> the URLs they retrieve? Both for the initial document
    Elliotte> and documents retrieved by the document() function?

    Elliotte> For my current needs I only need to retrieve
    Elliotte> authenticated documents from one site, so a single
    Elliotte> command line option would be sufficient. However longer
    Elliotte> term I'd like to be able to retrieve documents from
    Elliotte> multiple sites with different usernames and
    Elliotte> passwords. Thus either an extended document function or
    Elliotte> support for https://user:pass@host/ style URLs would be
    Elliotte> required.

How are you suggesting these should work?

The simplest approach is merely to recognize URLs in the form 
https://user:pass@host/



This could be implemented in a current processor without any spec changes.



The alternative would be a new document function (initially in an 
extension namespace until XSLT 2.1) with two extra arguments. E.g.



document($uri-sequence as item()*, $base-node as node()) as node()*, 
$username as string, $password as string)



Details are probably a little off, but that's the idea.




--
Elliotte Rusty Harold  elharo@xxxxxxxxxxxxxxx
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent