Back to FabImage Library website

You are here: Start » Function Reference » Camera Support » AXIS » AXIS_GenericRequest

AXIS_GenericRequest


Header: ThirdPartySdk.h
Namespace: fil
Module: ThirdParty

Send basic GET HTTP request to AXIS device.

Syntax

void fil::AXIS_GenericRequest
(
	AXIS_State& ioState,
	const ftl::String& inAddress,
	int inCameraID,
	ftl::Optional<const ftl::String&> inLogin,
	ftl::Optional<const ftl::String&> inPassword,
	const ftl::String& inRequest,
	ftl::String& outResponse
)

Parameters

Name Type Range Default Description
Input will be modified ioState AXIS_State& Object used to maintain state of the function.
Input value inAddress const String& Source device host or ip address
Input value inCameraID int 1 - 4 ID of camera
Input value inLogin Optional<const String&> NIL Login for Basic authorization
Input value inPassword Optional<const String&> NIL Login for Basic authorization
Input value inRequest const String& The url part that follows the device address.
Output value outResponse String& Response limited to 1024 lines.

Errors

List of possible exceptions:

Error type Description
DomainError Empty inAddress in AXIS_GenericRequest.