>       if Pos('CONTENT-LENGTH:', su) = 1 then
>       begin
>         Size := StrToIntDef(Trim(SeparateRight(s, ' ')), -1);
>         if (Size <> -1) and (FTransferEncoding = TE_UNKNOWN) then             
> <--
> CHANGES
>           FTransferEncoding := TE_IDENTITY;
>       end;

Yes, this is right fix. Better words are 'workaround', because server 
sending unlogical combination of headers.If server knows length of 
content, then why using chunked transfer?

In RFC-2616 is written:
"Messages MUST NOT include both a Content-Length header field and a 
non-identity transfer-coding. If the message does include a non- 
identity transfer-coding, the Content-Length MUST be ignored."

So, fixed version of HttpSend does it now correctly. ;-)



-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to