Results 1 to 4 of 4

Thread: [SOLVED] Does POST method through proxy work?

Threaded View

  1. #1
    Join Date
    Nov 2007
    Location
    Detroit, MI
    Posts
    67
    Rep Power
    7

    Question [SOLVED] Does POST method through proxy work?

    I'm trying to get an HTML POST to an external page to work via the built-in Zimlet proxy service, but I've so far have been unable to get the proxy to pass the POST variables through...

    GET requests work :
    Code:
     
     var request = new AjxRpcRequest("zimlet"); 
     var info_url = "http://test.com?key=value";
     var url = ZmZimletBase.PROXY + AjxStringUtil.urlEncode(info_url);
     request.invoke(null, url, null, new AjxCallback(this, my.callback, div), true);
    Inserting headers works :
    Code:
     
     var request = new AjxRpcRequest("zimlet"); 
     var reqHeader = {"Content-Type":"application/x-www-form-urlencoded"};
     var info_url = "http://test.com";
     var url = ZmZimletBase.PROXY + AjxStringUtil.urlEncode(info_url);
     request.invoke(null, url, reqHeader, new AjxCallback(this, my.callback, div), true);
    But I can't seem to get HTML POSTs working? :
    Code:
     
     var request = new AjxRpcRequest("zimlet"); 
     var reqHeader = {"Content-Type":"application/x-www-form-urlencoded"};
     var reqParam = AjxStringUtil.urlEncode("a=b");
     var info_url = "http://test.com";
     var url = ZmZimletBase.PROXY + AjxStringUtil.urlEncode(info_url);
     request.invoke(reqParam, url, reqHeader, new AjxCallback(this, my.callback, div), true);
    The POST variables just never show up at the server.. Does anyone know if the Proxy service allows HTTP POSTs or am I doing something wrong here?

    Thanks!
    -Rob
    Last edited by ab5602; 09-15-2008 at 12:16 PM.

Similar Threads

  1. Replies: 13
    Last Post: 01-28-2009, 12:30 AM
  2. zmtlsctl command not completing successfully
    By relay23 in forum Administrators
    Replies: 21
    Last Post: 07-10-2008, 12:07 AM
  3. Replies: 4
    Last Post: 05-08-2008, 09:12 AM
  4. No response from Jetty on clean 5.02 OS install
    By cniknet in forum Administrators
    Replies: 0
    Last Post: 02-16-2008, 11:17 AM
  5. Replies: 1
    Last Post: 01-02-2008, 08:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •