HttpPostURL function

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

Unit
HTTPSend

Description
This is useful function and example of use THTTPSend object.

It implement SEND method of HTTP protocol. This function is good for POSTing form data. It send SEND metod for URL document at HTTP server. You must prepare form data like if you can send data in URL, and pass this prepared data to URLdata. Data seems like '
name=Lukas&field1=some%20data'. You see, data in field must be encoded by EncodeURLElement function.

Returned document is in data stream. If all OK, result is true, else result is false.

See also:
EncodeURLElement, THTTPSend