Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.ParseMultipartFormData

TElHTTPSServer     


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


Allows to parse multipart/form-data contents

Declaration

[C#]
    TElMultipartFormList ParseMultipartFormData(TElHTTPServerRequestParams RequestParameters, byte[] Buffer);
    TElMultipartFormList ParseMultipartFormData(TElHTTPServerRequestParams RequestParameters, System.IO.Stream Strm);
    TElMultipartFormList ParseMultipartFormData(TElHTTPServerRequestParams RequestParameters, System.IO.Stream Strm, bool LoadData);

[VB.NET]
    Function ParseMultipartFormData(ByVal RequestParameters As TElHTTPServerRequestParams, ByVal Buffer As Byte()) As TElMultipartFormList
    Function ParseMultipartFormData(ByVal RequestParameters As TElHTTPServerRequestParams, ByVal Strm As System.IO.Stream) As TElMultipartFormList
    Function ParseMultipartFormData(ByVal RequestParameters As TElHTTPServerRequestParams, ByVal Strm As System.IO.Stream, ByVal LoadData As Boolean) As TElMultipartFormList

[Pascal]
    function ParseMultipartFormData(const ContentType : string; const Buffer : ByteArray) : TElMultipartFormList; overload;
    function ParseMultipartFormData(const ContentType : string; Strm : TStream) : TElMultipartFormList; overload;
    function ParseMultipartFormData(const ContentType : string; Strm : TStream; LoadData : Boolean) : TElMultipartFormList; overload;

[C++]
    TElMultipartFormListHandle ParseMultipartFormData(const std::string &ContentType, const std::vector<uint8_t> &Buffer);
    TElMultipartFormListHandle ParseMultipartFormData(const std::string &ContentType, TStream &Strm);
    TElMultipartFormListHandle ParseMultipartFormData(const std::string &ContentType, TStream *Strm);
    TElMultipartFormListHandle ParseMultipartFormData(const std::string &ContentType, TStream &Strm, bool LoadData);
    TElMultipartFormListHandle ParseMultipartFormData(const std::string &ContentType, TStream *Strm, bool LoadData);

[PHP]
    TElMultipartFormList ParseMultipartFormData(string $ContentType, array of byte|string|NULL $Buffer)
    TElMultipartFormList ParseMultipartFormData(string $ContentType, TStream $Strm)
    TElMultipartFormList ParseMultipartFormData(string $ContentType, TStream $Strm, bool $LoadData)

[Java]
    TElMultipartFormList parseMultipartFormData(TElHTTPServerRequestParams RequestParameters, TElStream Strm);
    TElMultipartFormList parseMultipartFormData(TElHTTPServerRequestParams RequestParameters, TElStream Strm, boolean LoadData);
    TElMultipartFormList parseMultipartFormData(TElHTTPServerRequestParams RequestParameters, byte[] Buffer);

Parameters

  • ContentType - The value of the ContentType field of the request parameters class.
  • Buffer - a buffer that contains form data.
  • Strm - a stream from which form data should be read.
  • LoadData -
  • RequestParameters -

Return value

    Returns the list of form-data elements.

Description

    Use this method to parse multipart/form-data content, posted to the server. The resulting object contains the list of entries in the list. Some of the entries can be lists of entries, thus forming a tree of entries.

Discuss this help topic in SecureBlackbox Forum