Discuss this help topic in SecureBlackbox Forum

TElRESTClient.Post

TElRESTClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Sends POST request to the server.

Declaration

[C#/Java]
    int Post(string URL, TElXMLDOMDocument Content);
    int Post(string URL, TElJsonEntity Content);
    int Post(string URL);
    int Post(string URL, string Content);
    int Post(string URL, byte[] Content);
    int Post(string URL, System.IO.Stream Content, bool CloseStream);

[VB.NET]
    Function Post(ByVal URL As String, ByVal Content As TElXMLDOMDocument) As Integer
    Function Post(ByVal URL As String, ByVal Content As TElJsonEntity) As Integer
    Function Post(ByVal URL As String) As Integer
    Function Post(ByVal URL As String, ByVal Content As String) As Integer
    Function Post(ByVal URL As String, ByVal Content As Byte()) As Integer
    Function Post(ByVal URL As String, ByVal Content As System.IO.Stream, ByVal CloseStream As Boolean) As Integer

[Pascal]
    function Post(const URL : string; Content : TElXMLDOMDocument) : integer;
    function Post(const URL : string; Content : TElJsonEntity) : integer;

[C++]
    int32_t Post(const std::string &URL, TElXMLDOMDocument &Content);
    int32_t Post(const std::string &URL, TElXMLDOMDocument *Content);
    int32_t Post(const std::string &URL, TElJsonEntity &Content);
    int32_t Post(const std::string &URL, TElJsonEntity *Content);

[PHP]
    integer Post(string $URL, TElXMLDOMDocument $Content)
    integer Post(string $URL, TElJsonEntity $Content)
    integer Post(string $URL)
    integer Post(string $URL, string $Content)
    integer Post(string $URL, array of byte|string|NULL $Content)
    integer Post(string $URL, TStream $Content, bool $CloseStream)

Parameters

  • URL - specifies the URL resource aaddress.
  • Content - the data to be sent to the server.
  • CloseStream - ...

Return value

    HTTP result code.

Description

    Use this method to send POST request to the server. The XML or JSON data will be intrinsically canonicalized/encoded according to the corresponding properties of the client.

See also:     Put     XMLCanonicalizationMethod     JSONCharsPerIndentLevel     JSONIndentChar    

Discuss this help topic in SecureBlackbox Forum