Easiest way is to try it and see
The easiest way to see what a POST looks like is to whip up a simple HTML form and see what gets POSTed when you hit the submit button.
However, if you're trying to create a POST from a browser, you shouldn't need to care about what it looks like over the wire. Just have your zimlet generate a form and submit it when appropriate -- the browser should do the right thing.
Proof that post does not work!
I've posted a php postback page so others can test my code.
It's very easy!
Behavior: Drag an email onto the zimlet and it $_post's it to a php page.
Only problem is post does not work? $_Get works, but post doesn't.
I've looked at several sample zimlets and post does not work there either. It seems that others have made workarounds that use included java code.
My code and a public web site to test it.
http://www.qpmp.com/zimbra/zm_post_test.php - for the post code.
http://www.qpmp.com/zimbra/zm_get_test.php - for the get code.
The only difference between the two pages is the word post and get.
I need to get this figured out. I made the decision to use Zimbra for the ability to do mashups. The ability to move information from zimbra to another web page/form/service should be a simple process.
Hopefully I'm doing something wrong or I don't understand how this is supposed to work. If this is the case someone please help me. I'll be glad to pay. I've got to get this done.
Hacking the ProxyServlet.java
What if we took this class - changed the names so there are no conflicts, made several of the methods and variables public.
The new ProxyServletPostem.java class would need to be included with the zimlet. The zimlet like com_zimbra_myzimlet, would include ProxyServletPostem.java or .jsp - don't know the java naming convention, I'm more of a PHP, C++, and VB guy, but learning.
Then in the zimlet create an instance of the ProxfServletPostem class, fill in all the vars via config_template.xml for static globals, user preferences can be where ever they are stored in zimlets and the stuff like email_obj.body can be pulled from the drag and drop.
Then just invoke or run or what ever you do in java to make it all run.
I've posted a link to the code. Any thoughts?