Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1.8
-
None
-
None
-
Operating System: All
Platform: All
-
32563
-
Patch available
Description
Hello all,
This patch permits the following:
(i) HttpProxyGenerator: now supports using JTidy on the HTML, POST params, use
of GET params in query string as well as POST params, multipart form submission.
To use it, add the following to your root sitemap:
<map:generator label="content" logger="sitemap.generator.proxy"
name="proxy_post" src="org.apache.cocoon.generation.HttpProxyGenerator">
<method>POST</method>
</map:generator>
In your local sitemaps, do this:
<map:generate type="proxy_post" src="http://my-url/some/webpage">
<map:parameter name="wsproxy-method" value="post"/>
<map:parameter name="use-jtidy" value="true"/>
<!-- specify your form submission params here: -->
<map:parameter name="param:myparam1"
value="myvalue1"/>
<map:parameter name="param:myparam2"
value="myvalue2"/>
<!-- and so on ... -->
</map:generate>
Lastly, make sure your form submits with multipart encoding, so that the proxy
code can do so too (to your target URL).
Consult the source code for more info.
(ii) WebServiceProxyGenerator: now supports using JTidy on the HTML, POST
params, use of GET params in query string as well as POST params, multipart form
submission.
Once again, see the source code for more info.
Enjoy,
Surj
This patch permits the following:
(i) HttpProxyGenerator: now supports using JTidy on the HTML, POST params, use
of GET params in query string as well as POST params, multipart form submission.
To use it, add the following to your root sitemap:
<map:generator label="content" logger="sitemap.generator.proxy"
name="proxy_post" src="org.apache.cocoon.generation.HttpProxyGenerator">
<method>POST</method>
</map:generator>
In your local sitemaps, do this:
<map:generate type="proxy_post" src="http://my-url/some/webpage">
<map:parameter name="wsproxy-method" value="post"/>
<map:parameter name="use-jtidy" value="true"/>
<!-- specify your form submission params here: -->
<map:parameter name="param:myparam1"
value="myvalue1"/>
<map:parameter name="param:myparam2"
value="myvalue2"/>
<!-- and so on ... -->
</map:generate>
Lastly, make sure your form submits with multipart encoding, so that the proxy
code can do so too (to your target URL).
Consult the source code for more info.
(ii) WebServiceProxyGenerator: now supports using JTidy on the HTML, POST
params, use of GET params in query string as well as POST params, multipart form
submission.
Once again, see the source code for more info.
Enjoy,
Surj