Hi. Sorry for my English. I fix some problems with decode page (with active
httpoEnableContentCoding) - no result after decode or timeout error when
TransferEncoding = 'chunked' (example - http://rutube.ru/ ,
http://bash.org.ru/ and some other), but with 'gzip all fine'. This problem
i see in last version from svn for D2009.

This fix problem with no result when TransferEncoding = 'chunked':
............................................................................................................................
OverbyteIcsHttpProt.pas

procedure THttpCli.GetBodyLineNext;
...
if FTransferEncoding = 'chunked' then begin
...
if FChunkState = httpChunkDone then begin
...
{$IFDEF UseBandwidthControl}
if (httpoBandwidthControl in FOptions) and Assigned(FBandwidthTimer)
then FBandwidthTimer.Enabled := FALSE;
{$ENDIF}
<------------------ LOST CODE ------------------->
{$IFDEF UseContentCoding}
FContentCodingHnd.Complete;
{$IFNDEF NO_DEBUG_LOG}
if CheckLogOptions(loProtSpecInfo) then begin
if Assigned(FRcvdStream) and (FContentEncoding <> '') then begin
DebugLog(loProtSpecInfo, FContentEncoding + ' content uncompressed from ' +
IntToStr(FContentLength) + ' bytes to ' +
IntToStr(FRcvdStream.Size) + ' bytes');
end;
end;
{$ENDIF}
{$ENDIF}
<------------------- LOST CODE ------------------>
....
...
............................................................................................................................
But after loading some page i have always timeout error, next fix:

OverbyteIcsHttpCCodZLib.pas

Add
BackObj.ProgressCallback := nil;
in procedure
procedure THttpCCodzlib.Complete;
(after some loading page BackObj not nulled after initialization, and
Assigned(BackObj.ProgressCallback) passed with not assigned callback, this
raise exception)
............................................................................................................................
Best regards, Yuri.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to