You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2006/03/01 08:22:45 UTC

[jira] Updated: (COCOON-1370) [PATCH] proxy block can now use JTidy and handle multipart POST

     [ http://issues.apache.org/jira/browse/COCOON-1370?page=all ]

David Crossley updated COCOON-1370:
-----------------------------------

    Bugzilla Id:   (was: 32563)
     Other Info: [Patch available]

> [PATCH] proxy block can now use JTidy and handle multipart POST
> ---------------------------------------------------------------
>
>          Key: COCOON-1370
>          URL: http://issues.apache.org/jira/browse/COCOON-1370
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Proxy
>     Versions: 2.1.8
>  Environment: Operating System: All
> Platform: All
>     Reporter: Surjan Singh
>     Assignee: Cocoon Developers Team
>  Attachments: patch.txt
>
> 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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira