You are here: Start » AVL.NET » Invoke.Http_SendCustomRequest

Invoke.Http_SendCustomRequest

Sends a custom HTTP request.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void Http_SendCustomRequest
(
	Avl.HTTPRequestMethod inMethod,
	string inUrl,
	List<string> inUrlParameters,
	List<string> inUrlParametersData,
	List<string> inHeaders,
	List<string> inHeadersData,
	Avl.ByteBuffer inData,
	int inTimeout,
	bool inAllowUntrusted,
	Optional<string> inCaCertFile,
	Conditional<Avl.ByteBuffer> outAnswer,
	out int outResponseCode
)

Parameters

Name Type Range Default Description
inMethodAvl.HTTPRequestMethodGETMethod of the request. Default value: GET.
inUrlstringURL of the request.
inUrlParametersSystem.Collections.Generic.List<string>URL parameters. They will be automatically encoded.
inUrlParametersDataSystem.Collections.Generic.List<string>URL parameters. They will be automatically encoded.
inHeadersSystem.Collections.Generic.List<string>Request headers to send. They will be automatically encoded.
inHeadersDataSystem.Collections.Generic.List<string>Request headers to send. They will be automatically encoded.
inDataAvl.ByteBufferBinary data to be sent.
inTimeoutint<0, INF>60Request timeout in seconds. Default value: 60.
inAllowUntrustedboolFalseWhether or not to allow untrusted SSL certificates. Default value: False.
inCaCertFileAtl.Optional<string>File holding one or more certificates to verify the peer with. Default value: atl::NIL.
outAnswerAtl.Conditional<Avl.ByteBuffer>Answer data.
outResponseCodeintAnswer code. Typically 200 for OK.

See also