Data.DbxHTTPLayer.TDSHTTPClient.Post

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DbxHTTPLayer.pas
Data.DbxHTTPLayer.hpp
Unit: Data.DbxHTTPLayer
Parent: TDSHTTPClient

Delphi

function Post(AURL: string; ASource: TStrings): string; virtual; abstract;

C++

virtual System::UnicodeString __fastcall Post(System::UnicodeString AURL, System::Classes::TStrings* ASource) = 0 ;

Description

Performs a POST query to an HTTP server.

Implement the Post method in descending classes to provide the functionality to perform a POST query to an HTTP server.

The AURL parameter specifies the URL of the query. ASource is the list of strings that represents the POST query's contents. Each string in ASource must have the following appearance: "Key=Value", and must be properly encoded.

Post is expected to return the contents of the requested server resource.

See Also