You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Glen Robson <gl...@llgc.org.uk> on 2008/02/15 15:47:26 UTC
Accessing an XML file through http Basic Authentication
Hi,
We are using cocoon 2.1.1 and I was wondering how you create a generator
from an XML source which is protected using HTTP Basic authentication.
Before the basic authentication was setup I would access the xml as follows:
<map:match pattern="object/*">
<map:generate src="http://<host>:<port>/get/{1}/mets/"/>
<map:transform src="stylesheets/show_object.xsl" >
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
The XML is located on another server and is accessed using a URL.
Thanks for your help
Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Accessing an XML file through http Basic Authentication
Posted by Glen Robson <gl...@llgc.org.uk>.
Thanks Andrew that worked great.
Cheers
Glen
Andrew Savory wrote:
> Hi Glen,
>
> On 15/02/2008, *Glen Robson* <glen.robson@llgc.org.uk
> <ma...@llgc.org.uk>> wrote:
>
> <map:match pattern="object/*">
> <map:generate src="http://<host>:<port>/get/{1}/mets/"/>
> <map:transform src="stylesheets/show_object.xsl" >
> <map:parameter name="use-request-parameters"
> value="true"/>
> </map:transform>
> <map:serialize type="html"/>
> </map:match>
>
> The XML is located on another server and is accessed using a URL.
>
>
> You could try:
>
> <map:generate src="http://user:pass@host:port/get/{1}mets/
> <http://user:pass@host:port/get/%7B1%7Dmets/>"/>
>
>
> Andrew.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Accessing an XML file through http Basic Authentication
Posted by Andrew Savory <sa...@andrewsavory.com>.
Hi Glen,
On 15/02/2008, Glen Robson <gl...@llgc.org.uk> wrote:
>
> <map:match pattern="object/*">
> <map:generate src="http://<host>:<port>/get/{1}/mets/"/>
> <map:transform src="stylesheets/show_object.xsl" >
> <map:parameter name="use-request-parameters" value="true"/>
> </map:transform>
> <map:serialize type="html"/>
> </map:match>
>
> The XML is located on another server and is accessed using a URL.
You could try:
<map:generate src="http://user:pass@host:port/get/{1}mets/"/>
Andrew.