Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPProtocol.BuildAndSendRequest
Constructs and sends a HTTP request message using headers and cookies.

procedure BuildAndSendRequest(AURI: TIdURI);
Parameters
AURI: TIdURI
Optional Universal Resource Locator for the request.

Description
BuildAndSendRequest is a procedure that allows the protocol handler to set header values for the HTTP request, and to send the request to the HTTP server. BuildAndSendRequest will insure that TIdHTTP.ProxyParams is updated from the raw headers in Request, and sets cookie values for the optional domain in AURI.

BuildAndSendRequest also generates the HTTP request message packet, including header values, and writes the values using the connection for the TIddHTTP client. BuildAndSendRequest is called from TIdHTTP.ConnectToHost.