Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-2007, 10:25 AM
Intermediate Member
 
Posts: 17
Default AjxRpc.invoke and POST requests with parameters

Hi, there,

I have been working on a Zimlet with Zimbra 5.0 that should send a POST request to a server. I wanted to add some POST parameter to it and have written the following code:

var msgValue = 'test';
var reqHeader = {"X-Zimbra-Client":"ZimbraSend" };
var reqParam = 'content=' + msgValue;
var urlStr = "http://192.168.0.87/alfresco/service/onepoint/fileupload/upload";
var url = ZmZimletBase.PROXY + AjxStringUtil.urlEncode(urlStr);
AjxRpc.invoke(reqParam, url, reqHeader, new AjxCallback(this, this._resultCallback), false);

Now the funny thing is: a Post request is sent, but the parameter 'content' does not seem to reach the server. I get an answer from the server, telling me that the parameter content is not there.

I assume, I might be doing something really silly here. Does anyone have an idea of what could be the error in this case?

Best regards,

Gil
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.