HTTP Client: modified spec and first implementation
Florent Georges <[email protected]> Mon, 2 Mar 2009 18:51:40 +0100
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Dear EXSLT-ers,
Eventually, I have just updated a new version of the spec for
the HTTP Client extension. Unfortunately, there is no diff
version, but the older version is still available, and here is a
summary of the changes:
* added additional prototypes (from 1 to 3 params)
* added @follow-redirect on http:request
* added @href on http:body
* defined XML, HTML, Text and Binary media types
The document is available at:
http://www.fgeorges.org/xslt/exslt2/http-client.html
The issue was raised about the use case for the attribute
@send-authorization. I got this one from XProc, and ask them
for its raison d'=EAtre. 2 points, as I thought: avoiding the
"got a 401, retry with credentials" round trip and a security
issue as credentials are not encoded in Basic authentication, so
we really want the user to explicitly ask for sending
authentication directly.
I also have an implementation for Saxon using Apache HTTP
Client 4.0. You can find it at:
http://www.fgeorges.org/xslt/exslt2/exslt2-http-client-0.1.tar.gz
This archive contains all dependencies (except Saxon itself)
and a simple example. Please follow the README file to run it
properly on your platform.
Any comment more than welcome! And thanks for the feedback
got so far.
Kind regards,
-- =
Florent Georges
http://www.fgeorges.org/