This topic describes configuration options for using the HTTP 1.0 transport in Client tools. In this section: The options available under the General tab vary depending on the tool you are configuring. The Endpoint option is available for SOAP Clients. Choose a definition from the dropdown menu: The Router Endpoint option is available for Messaging Clients. It specifies the endpoint URL for the server. Choose Fixed from the dropdown menu and manually specify the URL in the field provided. The endpoint can be specified as a fixed value, parameterized value, or scripted value. For details about scripting values, see Extensibility and Scripting Basics. The Method setting is available for REST Clients. It specifies which method is used to processes the request. This field is disabled if Constrain to WSDL is enabled. The method to invoke can be specified as a fixed value, parameterized value, or scripted value. For details about scripting values, see Extensibility and Scripting Basics. The SOAPAction setting is available for SOAP Clients and specifies how the server processes the request. This field is disabled if Constrain to WSDL is enabled. Enable Expect synchronous response if a response body is expected. This option is enabled by default because an HTTP response header is always expected. If this option is not enabled, then a one-way message is sent. The service may send a notification header (typically "HTTP/1.0 202 Accepted") in response. Specifies Keep-Alive or Close connections. The connection setting enabled will also be reused for a single invocation of a test suite from the GUI or the command line. Enable the Follow HTTP redirects option for messaging clients to automatically follow HTTP redirects. Disable this option if you want to perform an action or validation on the original request/response traffic (instead of working only with the final request/response pair). Compression settings are available for messaging clients. They specify whether to compress requests and decompress responses. You can enable the following compression setting options: The URL Parameters settings are available for Messaging Client tools. The interface enables you to add parameters to the URL for a GET request. After clicking Add, you can specify Parameters/Value pairs in the dialog that opens. If a data source is available, you can parameterize the values as well. Message Client URL Parameter Format URL query parameters are formatted according to the "application/x-www-form-urlencoded" content type. Space characters are replaced with '+'. Non alpha numeric characters are replaced with a percent sign followed by two hexadecimal digits representing the character code. Names and values are separated by '=' and name-value pairs are separated by '&'. If you want to use a different format, query parameters can also be specified directly at the end of the tool's endpoint URL (instead of in the URL Parameters section). For example, you could use Security settings for the transport are spread across the following tabs. Allows you to select an authentication method for the tool. Unless otherwise specified, the default authentication method set up for the test suite is used (see Configuring Test Suite Properties - Test Flow Logic, Variables, etc.), but you can change it by selecting Custom from the first dropdown and choosing the desired option from the next dropdown. Options include: One of the shared authentication methods created for the test suite. You can also create an authentication method for the test suite from here by clicking New. See "Global Authentications" on the Adding Global Test Suite Properties page for more information about adding shared authentication methods. Enable Use client key store to specify the key store used to complete the handshake with the server. You can specify HTTP Headers to include with your request. Use the following controls to add header names and values: These controls are used to override header fields. For example, you can override the Content-Type header field by specifying the desired name and value via these controls. The following headers are added by default and can be overridden using these UI controls. This header value contains the host name and port number from the HTTP endpoint or resource URL. This header specifies the media type of the outgoing message. This header is only sent if the outgoing message contains a body which is controlled by the HTTP method. A body is sent for POST, PUT, and DELETE methods and not for GET, OPTIONS, HEAD, or TRACE. The default value is determined based on the type of message being sent. The content-type of a SOAP message will vary depending on the SOAP version, "text/xml" for SOAP 1.1 or "application/soap+xml" for SOAP 1.2. Other XML messages will use "text/xml" by default. JSON messages will use "application/json". A message configured using the Table view will use "application/x-www-form-urlencoded". A message sent with MIME attachments will contain a "multipart" content-type with "start" and "boundary" parameters. Messages belonging to EDI, Fixed Length, CSV, or Custom message formats will have the media type for the message format. The size of the outgoing message in bytes. The following HTTP headers are configured conditionally. They are configured outside of this table or have values that must be dynamically generated. This HTTP header is sent for SOAP 1.1 only. It is set in the SOAPAction field of the General settings This header is constructed automatically based on the Authentication and OAuth settings specified in client options (HTTP Options > Security > Authentication). The value for NTLM, Digest, and Kerberos authentication will vary depending on various factors, including dynamically generated challenge responses and security tokens. This header is added to the message with value of This header is constructed based on the Proxy Authentication settings in the preferences and whether the server indicated that proxy authentication is required. Choose Custom from the Cookies menu and enable the Reset existing cookies before sending request option to clear the current cookies so that next HTTP invocations start a new session.General
Endpoint
Router Endpoint
Method
SOAPAction
Message Exchange Pattern
Connection Settings
Redirect Settings
Compression Settings
URL Parameters
http://host:8080/path?a=1&b=2&c=3
Security
Authentication
Client-side SSL
HTTP Headers
Host
Content-Type
Content-Length
SOAPAction
Authorization
Connection
Keep-Alive
if Keep-Alive connection is enabled. This header is not sent if Close connection is enabled (this is the default). Keep-Alive must be enabled for NTLM and Digest HTTP authentication.Proxy-Authorization
Cookies
Overview
Content Tools