Datasnap.DSHTTPClient.TDSHTTP.Post

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

void __fastcall Post(const System::UnicodeString AURL, System::Classes::TStream* ASource, 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 POST command request.

The following table shows the significance of the parameters.

Parameter Description

AURL

URL where the POST command is sent.

ASource

Source TStream for POST requests.

AResponseContent

The response stream for the POST request.

Exceptions

Exception Message Description

EHTTPProtocolException

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

A protocol exception is raised from the server response.

See Also