Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.006 Beiträge
 
Delphi 2009 Professional
 
#2

Re: IdHTTP.Post als HTTP/1.1 verschicken und Rang IdHTTP.Req

  Alt 19. Mai 2009, 13:33
Indy verwendet immer 1.0, siehe IdHTTP.pas:

Zitat:
// 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.
Eventuell bietet Synapse 1.0.

Oder es hilft, die Options Property hoKeepOrigProtocol zu setzen (auch aus IdHTTP.pas):

Zitat:
// If hoKeepOrigProtocol is SET, is possible to assume that the developer
// is sure in operations of the server
d.h. es funktioniert eventuell mit manchen Servern, aber nicht unbedingt mit jedem.


Cheers,
Michael Justin
habarisoft.com
  Mit Zitat antworten Zitat