+

Search Tips   |   Advanced Search

XML format for outbound HTTP connection configuration settings

To export or import the outbound HTTP Connections configuration, we use an XML file with a specific schema.


Example of a proxy-config.xml file

The following example is a sample outbound HTTP connection configuration script. It shows the schema for XML scripts used to export or import the outbound HTTP Connections configuration.

<?xml version="1.0" encoding="UTF-8"?>
<proxy-rules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      
             xsi:noNamespaceSchemaLocation="http://www.ibm.com/xmlns/prod/sw/http/outbound/proxy-config/2.0">

    <variables>
        <dynamic-policy name="default_policy">
           <value>http://www.ibm.com/*</value>
           <value>http://www-3.ibm.com/*</value>
        </dynamic-policy>
    </variables>

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

    <mapping contextpath="/myproxy" url="*" name="myproxy">
        <policy url="http://www.test-server.com/*" name="ibm1">
           <actions>
              <method>GET</method>
           </actions>

           <cookie-rule name="my.application.cookie">
            <cookie>TestCookie</cookie>
                  <scope>user</scope>
               <handling>store-session</handling>
         </cookie-rule>
        </policy>
    </mapping>

    <policy url="{$default_policy}" name="default">
        <actions>
            <method>GET</method>
            <method>HEAD</method>
        </actions>
    </policy>

     <meta-data>
        <name>socket-timeout</name>
        <value>10000</value>
    </meta-data>

</proxy-rules>


See


Parent Configure outbound HTTP connections