You are here: Start » AVL.NET » Function Reference » System » HTTP » AVL.Http_SendRequest_GET_ByteBuffer

AVL.Http_SendRequest_GET_ByteBuffer

Sends a GET request to server and receives a binary answer.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void Http_SendRequest_GET_ByteBuffer
(
	string inUrl,
	IList<string> inFields,
	IList<string> inFieldsData,
	INullable<AvlNet.ByteBuffer> outAnswer,
	out int outResponseCode
)

Parameters

Name Type Range Default Description
inUrlstringURL of request. Without parameters.
inFieldsSystem.Collections.Generic.IList<string>Request data to send. It will be automatically encoded.
inFieldsDataSystem.Collections.Generic.IList<string>Request data to send. It will be automatically encoded.
outAnswerAvlNet.INullable<AvlNet.ByteBuffer>Answer as binary byte buffer. This parameter cannot be null.
outResponseCodeintAnswer code. Typically 200 for OK.

Description

Filter sends a GET request to the server then waits for the sever answer. Filter can be used to download files from the remote server.

Examples

Filter executed with parameters:

  • inUrl = http://localhost/test
  • inFields = ["param1", "param2"]
  • inFieldsData = ["1", "2"]

Request sent to the server:

GET /test?param1=1&param2=2 HTTP/1.1
Host: localhost
User-Agent: Adaptive Vision/1.0
Accept: */*

Errors

List of possible exceptions:

Error type Description
DomainError Different size of inFields and inFieldsData in Http_SendRequest_GET_ByteBuffer.
DomainError Empty inUrl in Http_SendRequest_GET_ByteBuffer.
DomainError Invalid inUrl in Http_SendRequest_GET_ByteBuffer.
DomainError Secured HTTPS connection is not supported Http_SendRequest_GET_ByteBuffer.

See also