Datasnap.DSHTTPClient.TDSHTTP.Get

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DSHTTPClient.pas
Datasnap.DSHTTPClient.hpp
Unit: Datasnap.DSHTTPClient
Parent: TDSHTTP

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));

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