Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPCustomHTTPClient.StreamFormPost

Performs an HTTP form POST with stream upload

Declaration

Source position: fphttpclient.pp line 370

public procedure TFPCustomHTTPClient.StreamFormPost(

  const AURL: string;

  const AFieldName: string;

  const AFileName: string;

  const AStream: TStream;

  const Response: TStream

);

procedure TFPCustomHTTPClient.StreamFormPost(

  const AURL: string;

  FormData: TStrings;

  const AFieldName: string;

  const AFileName: string;

  const AStream: TStream;

  const Response: TStream

);

Arguments

AURL

  

The URL to post the stream form request to

AFieldName

  

The form field name for the stream data

AFileName

  

The filename to associate with the stream data

AStream

  

The stream containing the data to upload

Response

  

Variable to store the response content as string

Arguments

AURL

  

The URL to post the stream form request to

FormData

  

Additional form data to include with the stream upload

AFieldName

  

The form field name for the stream data

AFileName

  

The filename to associate with the stream data

AStream

  

The stream containing the data to upload

Response

  

Variable to store the response content as string

Description

Performs an HTTP POST request with form data that includes a file uploaded from a stream. Uses multipart/form-data encoding for the upload.

Errors

May raise HTTP-related exceptions on connection errors or invalid responses.

See also

FileFormPost

  

Performs an HTTP POST request with file upload

FormPost

  

Performs an HTTP POST request with form data


Documentation generated on: Jan 27 2026