Zimlets Proxy Servlet

(Redirected from Zimlets Proxy Servlet WP)
Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 4.5 Article ZCS 4.5

An AJAX client running in a web browser is not permitted to directly make requests to servers other than the originating server, as dictated by the browser security control.  Instead, the server hosting AJAX client must make proxy requests on behalf of the client.  By using the Proxy Servlet, Zimlets can access remote resources from other servers, as well as make requests to 3rd party systems. The default URL binding for Proxy Servlet is /service/proxy. This servlet takes accepts the following parameters:

  • target - the target URL
  • auth - authentication method (optional). Currently HTTP basic authentication is supported by Proxy Servlet. (auth=basic)
  • user - username used for the authentication (optional)
  • pass - password used for the authentication (optional)

The Proxy Servlet will copy any data sent through the POST method to the remote server specified by the target parameter. It will also copy any extra non-functional HTTP headers from the request.

The Proxy Servlet checks the target URL against the list of allowed domains that are listed in the configuration file. When the proxy request target does not appear in the allowed domain list, Proxy Servlet will return HTTP error 403 forbidden.

The Proxy Servlet can optionally cache the contents.Only the non-authenticated contents are cached. The cacheable contents are identified by the content-type header. For example, the caching can be turned on only for static images with image/gif or image/jpeg content types. The set of cacheable content types are also listed in COS.


Verified Against: Date Created: 7/16/2009
Article ID: https://wiki.zimbra.com/index.php?title=Zimlets_Proxy_Servlet Date Modified: 2015-03-30



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search