Back to FabImage Library website

You are here: Start » Function Reference » System » HTTP » Http_SendBinaryData

Http_SendBinaryData


Header: FIL.h
Namespace: fil
Module: FoundationLite

Sends a raw HTTP request.

Syntax

C++
C#
 
void fil::Http_SendBinaryData
(
	const ftl::String& inUrl,
	const ftl::Array<ftl::String>& inHeaders,
	const ftl::Array<ftl::String>& inHeadersData,
	const fil::ByteBuffer& inData,
	int inTimeout,
	bool inAllowUntrusted,
	const ftl::Optional<ftl::File>& inCaCertFile,
	ftl::Conditional<fil::ByteBuffer>& outAnswer,
	int& outResponseCode
)

Parameters

Name Type Range Default Description
Input value inUrl const String& URL of request.
Input value inHeaders const Array<String>& Request headers to send. They will be automatically encoded.
Input value inHeadersData const Array<String>& Request headers to send. They will be automatically encoded.
Input value inData const ByteBuffer& Binary data to be send.
Input value inTimeout int 0 - 60 Request timeout in seconds.
Input value inAllowUntrusted bool False Whether or not to allow untrusted SSL certificates.
Input value inCaCertFile const Optional<File>& NIL File holding one or more certificates to verify the peer with.
Output value outAnswer Conditional<ByteBuffer>& Answer data.
Output value outResponseCode int& Answer code. Typically 200 for OK.

Errors

List of possible exceptions:

Error type Description
DomainError Different size of inHeaders and inHeadersData in Http_SendBinaryData.