Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近、IdHTTPProxyServer がすべての HTTP/1.1 リクエストを HTTP/1.0 リクエストに自動的に変更することを発見しました。プロキシ サーバーが HTTP バージョンを変更するべきではないと思うので、私にとっては少し奇妙です。プロキシ サーバーが HTTP バージョンを変更しないようにする方法はありますか?
TIdHTTPProxyServer現時点では HTTP 1.1 をサポートしていません。TIdHTTPProxyServerHTTP バージョンを変更する動作は、実際にはクライアントの要求をそのまま通過するのではなく、クライアントが要求したデータを含む独自の HTTP 1.0 要求を送信するため、ハードコーディングされています。これを変更できる唯一の方法は、IdHTTPProxyServer.pasIndy を編集してから再コンパイルすることです。
TIdHTTPProxyServer
IdHTTPProxyServer.pas