Re: [twsocket] HTTP client component and document encoding

2005-07-21 Thread Maurizio Lotauro
Scrive Francois PIETTE <[EMAIL PROTECTED]>: > >class function THttpContentCoding.GetCoding: String; > >const > > BASE_CLASS_NAME = 'THttpContentCoding'; > >begin > > if Pos(BASE_CLASS_NAME, ClassName) = 1 then > >Result := Copy(ClassName, Length(BASE_CLASS_NAME), MAXINT) > > else > >Res

Re: [twsocket] HTTP client component and document encoding

2005-07-21 Thread Francois PIETTE
>class function THttpContentCoding.GetCoding: String; >const > BASE_CLASS_NAME = 'THttpContentCoding'; >begin > if Pos(BASE_CLASS_NAME, ClassName) = 1 then >Result := Copy(ClassName, Length(BASE_CLASS_NAME), MAXINT) > else >Result := 'Unknown'; { Raise an exception?? } >end; Instead of

[twsocket] HTTP client component and document encoding

2005-07-21 Thread Francois PIETTE
Maurizio Lotauro is working on the HTTP client component to extend the work already done by Xavier Le Bris (gzip support). The idea is to have a general mechanism in the component to register encoding system so that adding new encoding scheme doesn't require component change. Preliminary code i