Body
Body text is an optional parameter element for the HTTP and HTTPS monitors. Specify the body part of a POST request.
For example, you could specify the following body text for the
POST request:
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:echoString xmlns:ns1="http://soapinterop.org/">
<ns2:input xsi:type="xsd:string" xmlns:ns2="http://soapinterop.org/xsd">
</ns2:input>
</ns1:echoString>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
To add body text to the POST request:
- In the Internet Service Monitoring Configuration, select an HTTP or HTTPS profile.
- On the Advanced tab, change the command to POST.
- On the Body tab, which is now enabled, enter the body text for the POST request.
The Content-Type parameter is automatically added to the Parameters tab. The parameter defaults to application/x-www-form-urlencoded. Modify the parameter to the type of request inserted into the body tab. In the above example, change the Content-Type to text/xml.
Alternatively, you can configure the body for the POST request
using the Internet Service Monitoring Configuration
command-line interface or
ismbatch and the @Body group. For example:
ismconfig -config -add monitor=http profile=httpbodytest command=POST page="/"
server="10.1.1.1" @Body "body text"