+

Search Tips   |   Advanced Search

AJAX proxy: URL format and examples

The AJAX proxy can be addressed via URLs that comply with the REST-based URL format...

    protocol://portal-domain/proxyurl/protocol/host/port/url?query

The proxy URL carries the target URL in its path information part. Depending on the context path mapping in the proxy configuration, the target URL can be an absolute or relative URL. These examples show how we can load a URL via the proxy depending on the context path mapping in the proxy configuration.

URL:

    http://www.ibm.com/developerworks/news/dw_dwtp.rss

Context path mapping (from proxy-config.xml):

    <mapping contextpath="/proxy" url="*"/>

Proxy URL:

    http://myportal.com:10040/wps/proxy/http/www.ibm.com/developerworks/news/dw_dwtp.rss

URL:

    http://myotherportal.com:1234/sitemap

Context path mapping (from proxy-config.xml):

    <mapping contextpath="/proxy" url="*"/>

Proxy URL:

    http://myportal.com:10040/wps/proxy/http/myotherportal.com%3a1234/sitemap

URL:

    http://www-01.ibm.com/software/swnews/swnews.nsf/swnewsrss?openview&RestrictToCategory=lotus

Context path mapping (from proxy-config.xml):

    <mapping contextpath="/ibmsoftwarenews" url="http://www-01.ibm.com/software/swnews/"/>

Proxy URL:

    http://myportal.com:10040/wps/ibmsoftwarenews/swnews.nsf/swnewsrss?openview&RestrictToCategory=lotus


Parent The programming model for using the AJAX proxy