- From: Alex Milowski <alex@milowski.org>
- Date: Wed, 11 Jul 2007 13:03:58 -0700
- To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
Rather than change p:http-request to have multiple modes of operating, I think
we can simplify by specializing a step to just HTTP get requests:
<p:declare-step type="p:http-get">
<p:input port="source"/>
<p:output port="result"/>
<p:option name="href" required="yes"/>
<p:option name="username"/>
<p:option name="password"/>
<p:option name="auth-method"/>
<p:option name="send-authorization"/>
</p:declare-step>
The 'href' option specifies the URL to perform a GET request against.
The 'username' etc. options control authentication just as for p:http-request.
The result would be handled as follows:
1. If the result has an XML media type, the content is parsed and produced
on the 'result' output port.
2. For non-XML media types, a c:body element is generated just as specified
for p:http-request.
--
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."
Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 11 July 2007 20:04:02 UTC