You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gernot Koller <gr...@gmx.at> on 2003/01/14 16:47:43 UTC

Accessing Http authentication protected URls via HTML Generator

Hi!

I'm extracting some information from another webapplication and render it as part of my cocoon based portal.
I do this using the html generator to retrieve the xhtml from the 3rd party webapplication and use xslt stylesheet to extract the information 
I need. While this generally works quite well, I get some problems, when the 3rd party URL is protected via HTTP authenticiation.
To my understanding, technically everything should work, when i add a Authorization HTTP-Header (e.g. "Authorization: Basic 
7234jhdfhjasfhjsd") to the request of the 3rd party URL. I even would consider hardcoding this information. I already browsed the html-
generator sources, but I cant't find a simple way to achieve this...

Anybody any hints ?

gernot.



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Accessing Http authentication protected URls via HTML Generator

Posted by Geoff Howard <co...@leverageweb.com>.
If you're using BASIC authentication, you may try using the syntax:

http://username:password@www.yoururl.com

Also, you should look into the WebServiceProxyGenerator (if you're using 2.1
or
can wait until it's ported to 2.0.4  Search for WebServiceProxyGenerator in
the
archives, or search for emails from/to dabbous@saxess.com

Geoff

> -----Original Message-----
> From: Gernot Koller [mailto:grizzly@gmx.at]
> Sent: Tuesday, January 14, 2003 10:48 AM
> To: cocoon-users@xml.apache.org
> Subject: Accessing Http authentication protected URls via HTML Generator
>
>
> Hi!
>
> I'm extracting some information from another webapplication and
> render it as part of my cocoon based portal.
> I do this using the html generator to retrieve the xhtml from the
> 3rd party webapplication and use xslt stylesheet to extract the
> information
> I need. While this generally works quite well, I get some
> problems, when the 3rd party URL is protected via HTTP authenticiation.
> To my understanding, technically everything should work, when i
> add a Authorization HTTP-Header (e.g. "Authorization: Basic
> 7234jhdfhjasfhjsd") to the request of the 3rd party URL. I even
> would consider hardcoding this information. I already browsed the html-
> generator sources, but I cant't find a simple way to achieve this...
>
> Anybody any hints ?
>
> gernot.
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>