[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: HTTP authentication support

Subject: Re: HTTP authentication support
From: Elliotte Harold <elharo@xxxxxxxxxxxxxxx>
Date: Mon, 03 Sep 2007 13:49:59 -0400
Re:  HTTP authentication support
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.