да ставил..... нарылось вот что:
| Код | procedure TIdCustomHTTP.Post(AURL: string; const ASource, AResponseContent: TStream); var OldProtocol: TIdHTTPProtocolVersion; begin // PLEASE READ CAREFULLY
// 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; end;
|
видимо, лыжа это. он всегда разрывает коннект для поста. странно, почему?? и зачем? |