You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joel McConaughy <jo...@displayware.com> on 2004/02/21 01:47:45 UTC

Handling redirects with file generator?

I am trying to harvest some data from a website that returns an initial 
redirect.  Using the file generator, I get the following error:
    org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.io.IOException
which I'm guessing is caused by the redirect not being handled within 
the generator.  If I use the url returned from the redirect, it works fine.

My question, is there an easy and/or graceful to handle a redirect using 
existing components.  I haven't dived into building my own generator yet 
which is the only other way I can think of to solve this.  Thanks much.

joel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Handling redirects with file generator?

Posted by Joerg Heinicke <jo...@gmx.de>.
On 21.02.2004 01:47, Joel McConaughy wrote:

> I am trying to harvest some data from a website that returns an initial 
> redirect.  Using the file generator, I get the following error:
>    org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> java.io.IOException
> which I'm guessing is caused by the redirect not being handled within 
> the generator.  If I use the url returned from the redirect, it works fine.
> 
> My question, is there an easy and/or graceful to handle a redirect using 
> existing components.  I haven't dived into building my own generator yet 
> which is the only other way I can think of to solve this.  Thanks much.

Did you have a look on the proxy generators in the proxy block? At least 
the HttpProxyGenerator uses HttpClient lib that allows to follow 
redirects, don't know how it is implemented in this generator.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org