HttpPostURL function

function HttpPostURL(Const URL, URLData: string; Const Data: TStream): Boolean;

Unit
HTTPSend

Description
A very useful function, and example of use can be found in the THTTPSend object.

It implements the POST method of the HTTP protocol. This function is good for POSTing form data. It sends the POST method for a URL document to an HTTP server. You must prepare the form data in the same manner as you would the URL data, and pass this prepared data to "URLdata". The following is a sample of how the data would appear: 'name=Lukas&field1=some%20data'. The information in the field must be encoded by EncodeURLElement function.

The returned document is in the "Data" stream. Returns boolean TRUE if all went well.


See also:
EncodeURLElement, THTTPSend