cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: Inter Server Communications
Date Fri, 17 May 2013 22:53:47 GMT
On 05/17/2013 05:20 PM, Peter Sparkes wrote:
> Hi
> I have an application in which I require to send a POST request from
> the server to another non Cocoon website ( to set parameters for a
> newsletter which uses phplist newsletter software) and the response
> would be in JSON

Highly depends on your underlying usecase what to do with the response
and further the cocoon version you are using. I lately use the REST-way
in c3 but you can post anything with cinclude in 2.1.x like:

     <ROOT xmlns:sql="urn:schemas-microsoft-com:xml-sql">
       <sql:xpath-query xmlns:lsa="blah"

as described in

> This would be server to server without any client browser being involved

Actually if I understand your usecase that is not 100% needed. The user
has the newsletter form generated by cocoon and the result has to go to
the php server. IF the php is reachable form the "outside" then a simple
javascript would do to treat the response. If not I recommend a httpd in
front and there just proxy/rewrite the request to the different server.


> How do I do this?
> Help please
> Peter
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Thorsten Scherler <>
codeBusters S.L. - web based systems
<consulting, training and solutions>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message