Datasnap.DSHTTPClient.TDSHTTP.Get

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Get(const AURL: string; AResponseContent: TStream = nil);

C++

void __fastcall Get(const System::UnicodeString AURL, System::Classes::TStream* AResponseContent = (System::Classes::TStream*)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DSHTTPClient.pas
Datasnap.DSHTTPClient.hpp
Datasnap.DSHTTPClient TDSHTTP

Description

Sends a GET command request.

The following table shows the significance of the parameters.

Parameter Description

AURL

URL where the GET command is sent.

AResponseContent

The stream to collect the response in.

Exceptions

Exception Message Description

EHTTPProtocolException

<HTTP protocol version> <HTTP status code> <Reason-Phrase>

A protocol exception is raised from the server response.

See Also