You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2002/04/09 14:52:36 UTC
Problems with StreamGenerator
Hi,
when I use the stream generator with the HTTPClient-Package
(http://www.innovation.ch/java/HTTPClient), Cocoon hangs.
The client uses the following code:
URL url = new URL("http://localhost");
connection = new HTTPConnection(url);
NVPair[] pairs = new NVPair[1];
pairs[0] = new NVPair("Content-Type","text/xml");
HTTPResponse response = connection.Post("sunshine/jbtest/streamtest",
"<test/>", pairs);
int result = response.getStatusCode();
Using a Post Parameter in combination with the map:parameter "form-name"
works as expected.
Is there anything I forgot to do on the client side?
Thanks,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org