You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/12/07 13:44:13 UTC

DO NOT REPLY [Bug 32563] New: - [PATCH] proxy block can now use JTidy and handle multipart POST

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32563>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32563

           Summary: [PATCH] proxy block can now use JTidy and handle
                    multipart POST
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: surjan.singh@misgl.com


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.