Uwe, > what I need is to send a XML stream via POST from a Java servlet to > Cocoon in order to use the stream generator! > > The XML stream is a String and I don't know what I have to do! Should I > append the string to the URL so that it looks like this: > localhost:8080/cocoon/test.xml<?xml version="1.0"><test></test> ????
No that won't work. The way HTTP works is that URL parameters (name value pairs) can either be appended to the URL (GET) or stored in the body of the request (POST). It is also possible to replace this body with some arbitrary content, e.g. post an XML document. So if you want a servlet to do the post, you've got to find some component to do it. I'm afraid I've only ever done it via VB and ASP (but will soon need to do it in Java!) You can see some HTTP code in the Cocoon 2.1 code: /src/blocks/proxy/java/org/apache/cocoon/generation/*.java But I couldn't find out how to do a post with that component. Hope this helps. Regards, Upayavira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
