Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Сети > Почему IdHttp отправляет POST ... HTTP/1.0


Автор: Teran 2.9.2006, 09:21
Подскажите почему IdHttp отправляет POST ... HTTP/1.0, а не HTTP/1.1
хотя настройка ProtocolVersion = pv1_1
 smile  smile  smile 

Автор: Teran 2.9.2006, 11:05
Проблему решил
Странно но проблема заключалась не в версии протокола

Автор: Matematik 2.9.2006, 13:56
ага
вот что написано в idhttp.pas
Код

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.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)