It seems the mailinglist is not accept join file so the patch is :

Index: Delphi/Vc32/OverbyteIcsHttpProt.pas
===================================================================
--- Delphi/Vc32/OverbyteIcsHttpProt.pas (révision 814)
+++ Delphi/Vc32/OverbyteIcsHttpProt.pas (copie de travail)
@@ -2520,8 +2520,11 @@
             Headers.Add('Cookie: ' + FCookie);
         if (FContentRangeBegin <> '') or (FContentRangeEnd <> '') then
begin            {JMR!! Added this line!!!}
             Headers.Add('Range: bytes=' + FContentRangeBegin + '-' +
FContentRangeEnd); {JMR!! Added this line!!!}
-            FContentRangeBegin := '';
{JMR!! Added this line!!!}
-            FContentRangeEnd   := '';
{JMR!! Added this line!!!}
+            If (method <> 'CONNECT') then
//PATCH JD
+            begin
+              FContentRangeBegin := '';
{JMR!! Added this line!!!}
+              FContentRangeEnd   := '';
+            end;                                                   {JMR!!
Added this line!!!}
         end;
{JMR!! Added this line!!!}
         FAcceptRanges := '';





Cordialement,

 

Jean DELAGOUTTE,


-----Message d'origine-----
De : Wanao - Jean DELAGOUTTE [mailto:j.delagou...@wanao.com] 
Envoyé : mardi 15 novembre 2011 10:25
À : 'twsocket@elists.org'
Objet : contentrange problem with proxy


There is a problem with ContentRange when we use proxy

Example :

I wan’t donwload only the first Mo of a 5Mo file

Httpcli.ContentRangeStar := 0 ;

Httpcli.ContentRangeEnd :=1048575 ;

Httpcli.get ;

If we don't use proxy i have a downloaded file size 1Mo.
But if i use proxy with the same code i have a downloaded file size 5Mo. 

You could find a patch file joined to this email.


Cordialement,
 
Jean DELAGOUTTE,



--
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