Script Packager Object Model Reference

IRequestFunctions.CreateHttpRequest Method 

Create an HttpRequest object that can be used with the SendHttpRequest function

IHttpRequest CreateHttpRequest(
   string Url,
   string Method,
   object Content
);

Parameters

Url
The URL to use for the request
Method
The HTTP method to use. Defaults to GET if no value is specified
Content
The content of the HTTP request. No content is sent if no value is specified

Return Value

An HttpRequest object that can be sent using the SendHttpRequest function

Remarks

Basic properties of the request can be specified when creating the HttpRequest. If neccessary additional properties, such as the request timeout and request headers, can be configured on the HttpRequest object before it is sent using the SendHttpRequest method. The same request object can be passed to the SendHttpRequest method multiple times if neccessary. For example, if a request is configured with a URL, Method, and Headers (e.g. an Api-Key and a Content-Type header for example) it is possible to make the same request multiple times just changing the Content property of that request object.

See Also

IRequestFunctions Interface | Intelligence.FuncLibs.Http.HttpRequest Namespace