You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Harry Stangel <ha...@posthastedirectmail.com> on 2005/01/04 00:48:07 UTC

how to POST http to a servlet?

How can I use Cocoon to POST (not GET) an http request to a servlet?

Best,
Harry

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


Re: how to POST http to a servlet?

Posted by Jan Hoskens <jh...@schaubroeck.be>.
Harry Stangel wrote:
> How can I use Cocoon to POST (not GET) an http request to a servlet?
> 
> Best,
> Harry
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

I use the following to post a request to my xreporter servlet:

<map:generate type="wsproxy"  	
src="{global:xreporter-host}/reports?lang=en-US&amp;user={session-context:authentication/authentication/ID}&amp;dataSourceId={datasource}&amp;reportId={reportid}{interaction}"> 


	<map:parameter name="wsproxy-method" value="POST"/>
</map:generate>

Kind Regards,
Jan


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