HTTP Request Library Object

The HTTP Request functions enable you to invoke Web service requests.

For an example of working with these functions, see Using the HTTP Request Functions.

The business entities in this library are exposed under Business Entities > Library Types > Communication> HTTP Request.

The functions are exposed under Project > References > Library References > Direct.Common > HTTP Request.

Before you use these functions, create an instance of the HTTP Request business entity. Enter the values in the required parameters to invoke the web service request.

Name

input type

description

Accept Property Header Text Specify the media types that are acceptable for the response.

Authentication Type

Text

The authentication mechanism supported by the Web service. The supported authentication types are:

  • Basic: Requires a username and password from the user for authentication.

  • Digest: Requires username and password from the user for authentication.

  • Negotiate: Uses the Windows login credentials for authentication.

  • NTLM: Uses the Windows login credentials for authentication.

Auto Redirect

Boolean Indicates if automatic redirection of the Web request is enabled or disabled.

Content Type

Text The content type for the Web request.

Inbound Encoding

Text The encoding type for an incoming response.

Outgoing Encoding

Text The encoding type for an outgoing request.

Password

Text The password to connect to the Web server.

Proxy Port

Number The port of the proxy server.

Proxy Server

Text The URL of the proxy server.

Request Body

Text

The body of the Web service request.

Request Method

Text

The Request method for the Web service request.

Response

Text

The Response to the Web service request.

Response Headers

List of Key-Value pair

The HTTP response headers.

Status Text Indicates the status of the Web service request.

Timeout

Number

The Web server connection timeout time.

URL

Text

The URL of the Web server.

User Agent

Text

A user agent string containing properties of the Request user's system.

User Name

Text

The username to connect to the Web server.

Windows Authentication

Boolean

Indicates if the use of Windows authentication to connect to the Web server in enabled or disabled.

The events of HTTP Request library are listed below:

Events Description
Async Callback This event is raised when the execution of Post Request Asynchronously is completed.
Exception This event is raised when an HTTP request gets an exception, after the request is sent to the server.

The functions of HTTP Request library are listed below: