You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Anna Afonchenko <an...@ubaccess.com> on 2002/12/30 15:48:26 UTC
Generating invalid url
Hi All.
I have a pipeline that matches some http request with parameter indicating some url.
For example:
the http request is:
cocoon/testing?url=www.yahoo.com
<map:match pattern="testing">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:generate src="http://{url}"/>
<map:transform src="stylesheet.xsl"/>
<map:serialize type="html"/>
</map:act>
</map:match>
How I can check that the supplied url is valid?
Does generator throw some error that I can then catch in map:handle-errors?
Thank you very much for help.
Anna
Re: Generating invalid url
Posted by Joerg Pietschmann <j3...@yahoo.de>.
On Monday 30 December 2002 15:48, you wrote:
> How I can check that the supplied url is valid?
What's an invalid URL?
- URL syntax violated (see http://www.rfc-editor.org/rfc/rfc2396.txt)
- hostname DNS lookup failed
- server not reachable
- content not XML
> Does generator throw some error that I can then catch in map:handle-errors?
Just try it. It may take some time, perhaps exceeding client time out,
if the server is not reachable or just very slow.
J.Pietschmann
---------------------------------------------------------------------
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>