// Currently when issuing a POST, IdHTTP will automatically set the protocol
// to version 1.0 independently of the value it had initially. This is because
// there are some servers that don't respect the RFC to the full extent. In
// particular, they don't respect sending/not sending the Expect: 100-Continue
// header. Until we find an optimum solution that does NOT break the RFC, we
// will restrict POSTS to version 1.0.
if Connected then
begin
Disconnect;
end;
OldProtocol := FProtocolVersion;
// If hoKeepOrigProtocol is SET, is possible to assume that the developer
// is sure in operations of the server
if not (hoKeepOrigProtocol in FOptions) then //看这里
FProtocolVersion := pv1_0;
DoRequest(hmPost, AURL, ASource, AResponseContent);
FProtocolVersion := OldProtocol;
///////////////////////////////////////////////