Discuss this help topic in SecureBlackbox Forum

TElHTTPSClient.CustomRequest

TElHTTPSClient     See also     


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


Sends custom request to the server.

Declaration

[C#/Java]
    int CustomRequest(string URL, string Method);
    int CustomRequest(string URL, string Method, System.IO.Stream Content, bool CloseStream);

[VB.NET]
    Function CustomRequest(ByVal URL As String, ByVal Method As String) As Integer
    Function CustomRequest(ByVal URL As String, ByVal Method As String, ByVal Content As System.IO.Stream, ByVal CloseStream As Boolean) As Integer

[Pascal]
    function CustomRequest(const URL : string; const Method : string) : integer;
    function CustomRequest(const URL : string; const Method : string; Content : TStream; CloseStream : boolean = false) : integer;

[C++]
    int32_t CustomRequest(const std::string &URL, const std::string &Method);
    int32_t CustomRequest(const std::string &URL, const std::string &Method, TStream &Content, bool CloseStream);
    int32_t CustomRequest(const std::string &URL, const std::string &Method, TStream *Content, bool CloseStream);

[PHP]
    integer CustomRequest(string $URL, string $Method)
    integer CustomRequest(string $URL, string $Method, TStream $Content, bool $CloseStream)

Parameters

  • URL - resource address. This method does NOT encode the parameters that you pass in the URL, they need to be encoded prior to calling the method.
  • Method - specifies request method.
  • Content - specifies request body.
  • CloseStream - specifies if the content stream should be freed after request execution. The default value is False.

Return value

    Returns HTTP result code.

Description

    This method allows to send custom HTTP requests to the server.

See also:     Get     Put     Post    

Discuss this help topic in SecureBlackbox Forum