Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Angus Robertson - Magenta Systems Ltd
> To elaborate: You need a page with no content-length and no chunked 
> encoding that returns 401 to see it.

And the URL of that example page is what? 

Or are you expecting someone to create a badly formatted example page for
you? 

Angus

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


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Fastream Technologies
To elaborate: You need a page with no content-length and no chunked encoding
that returns 401 to see it.
Best Regards,

SZ
On Wed, Oct 5, 2011 at 07:07, Fastream Technologies wrote:

> Here is a screenshot of the issue as a picture is worth a thousand words:
> http://www.fastream.com/ics/ICSHTTPCLI.png
> Regards,
>
> SZ
> On Wed, Oct 5, 2011 at 06:26, Fastream Technologies wrote:
>
>> Dear Arno,
>>
>> The new problem happens with GET on pages with no content-length and no
>> chunked-encoding. This bug had once been there, and then was fixed. Now it
>> happens again. Please try against such a page with Httptst demo and you will
>> see that the OnDocData is never called but instead all the data is assumed
>> as header lines. I am using v7.18.
>> Thanks for your efforts,
>>
>> SubZero
>> On Tue, Oct 4, 2011 at 20:11, Arno Garrels  wrote:
>>
>>> Fastream Technologies wrote:
>>> > We had actually paid for HttpCli bug fixes to Arno. I hope he will
>>> > show up and fix it soon. We do not use content coding so I do not
>>> > think Yuri's fix would work.
>>>
>>> I made your test case working by a fix of chunked decoding.
>>> So what actually is the problem now?
>>> Without a simple test case I won't look at it.
>>>
>>> --
>>> Arno Garrels
>>>
>>>
>>> >
>>> > BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
>>> > Regards,
>>> >
>>> > SZ
>>> >
>>> > On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
>>> > an...@magsys.co.uk> wrote:
>>> >
>>> >>> I wrote about a similar bug, but got no response from the
>>> >>> administration.
>>> >>
>>> >> It is on my list of things to investigate this week, but paying work
>>> >> has to come before minor bug fixes like this.
>>> >>
>>> >> Angus
>>> >>
>>> >> --
>>> >> 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
>>> --
>>> 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
>>>
>>
>>
>
--
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


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Fastream Technologies
Here is a screenshot of the issue as a picture is worth a thousand words:
http://www.fastream.com/ics/ICSHTTPCLI.png
Regards,

SZ
On Wed, Oct 5, 2011 at 06:26, Fastream Technologies wrote:

> Dear Arno,
>
> The new problem happens with GET on pages with no content-length and no
> chunked-encoding. This bug had once been there, and then was fixed. Now it
> happens again. Please try against such a page with Httptst demo and you will
> see that the OnDocData is never called but instead all the data is assumed
> as header lines. I am using v7.18.
> Thanks for your efforts,
>
> SubZero
> On Tue, Oct 4, 2011 at 20:11, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > We had actually paid for HttpCli bug fixes to Arno. I hope he will
>> > show up and fix it soon. We do not use content coding so I do not
>> > think Yuri's fix would work.
>>
>> I made your test case working by a fix of chunked decoding.
>> So what actually is the problem now?
>> Without a simple test case I won't look at it.
>>
>> --
>> Arno Garrels
>>
>>
>> >
>> > BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
>> > Regards,
>> >
>> > SZ
>> >
>> > On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
>> > an...@magsys.co.uk> wrote:
>> >
>> >>> I wrote about a similar bug, but got no response from the
>> >>> administration.
>> >>
>> >> It is on my list of things to investigate this week, but paying work
>> >> has to come before minor bug fixes like this.
>> >>
>> >> Angus
>> >>
>> >> --
>> >> 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
>> --
>> 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
>>
>
>
--
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


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Fastream Technologies
Dear Arno,

The new problem happens with GET on pages with no content-length and no
chunked-encoding. This bug had once been there, and then was fixed. Now it
happens again. Please try against such a page with Httptst demo and you will
see that the OnDocData is never called but instead all the data is assumed
as header lines. I am using v7.18.
Thanks for your efforts,

SubZero
On Tue, Oct 4, 2011 at 20:11, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > We had actually paid for HttpCli bug fixes to Arno. I hope he will
> > show up and fix it soon. We do not use content coding so I do not
> > think Yuri's fix would work.
>
> I made your test case working by a fix of chunked decoding.
> So what actually is the problem now?
> Without a simple test case I won't look at it.
>
> --
> Arno Garrels
>
>
> >
> > BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
> > Regards,
> >
> > SZ
> >
> > On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
> > an...@magsys.co.uk> wrote:
> >
> >>> I wrote about a similar bug, but got no response from the
> >>> administration.
> >>
> >> It is on my list of things to investigate this week, but paying work
> >> has to come before minor bug fixes like this.
> >>
> >> Angus
> >>
> >> --
> >> 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
> --
> 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
>
--
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


Re: [twsocket] HTTP SSL Server vs p7b certificate's format

2011-10-04 Thread ROQUES Guillaume

Do you ask for how to get a ICS TSslHttpServer working with a bought
server certificate?

Yes, and if I need to convert p7b's certificate or not ?

Open the MyCertificate.pem in a text editor that understands UNIX line
breaks. Does MyCertificate.pem include multiple certificates?
With a bought commercial certificate there should be at least 2 certificates
included in MyCertificate.pem.
Make sure that the order of these certificates is correct.
First has to be the server certificate followed by possible intermediate
certificates followed by the root CA certificate.
That's right, I found 3 certificates : 1 for the domain name 
*.mydomain.com, 1 for GlobalSign Domain Validation CA and 1 for 
GlobalSign root CA.


Gratefully,

Guillaume ROQUES


Le 20:59, Arno Garrels a écrit :

ROQUES Guillaume wrote:

That's confusing description. Did he buy a SSL server certificate in
order to access your server? Or are you talking about client
certificates?



The customer already have a SSL certificate on his domain, so he want
that my HttpServer use SSL with this certificate.

Do you ask for how to get a ICS TSslHttpServer working with a bought
server certificate?


Please provide more details about how you setup the component to
use your the certificates. What HTTP client application is used?

Here is my initialization :

interface
[...]

 TMyService =lass(TService)
 SslHttpServer: TSslHttpServer;
 TWSslAvlSessionCache: TSslAvlSessionCache;
 TWSslContext: TSslContext;
 [...]
 end;

implementation
[...]

procedure TMyService.ServiceStart(Sender: TService; var Started:
Boolean); begin
 [...]

 SslCertFile :=Path + 'MyCertificate.pem';
 SslPassPhrase :=';
 SslPrivKeyFile :=Path + 'MyCertificate.pem';
 SslCAFile :=Path + 'MyCertificate.pem';
 SslCAPath :=Path;
 SslVerifyPeer :=alse;

 // Pre-loads OpenSSL DLL's
 TWSslContext.InitContext;
 DoLog('OpenSslVersion : ' + OpenSslVersion);
 DoLog(OpenSslCompilerFlags + #13#10 + OpenSslBuiltOn
 + #13#10 + OpenSslPlatForm + #13#10 + OpenSslDir);
 SslHttpServer.Start;
end;


Open the MyCertificate.pem in a text editor that understands UNIX line
breaks. Does MyCertificate.pem include multiple certificates?
With a bought commercial certificate there should be at least 2 certificates
included in MyCertificate.pem.
Make sure that the order of these certificates is correct.
First has to be the server certificate followed by possible intermediate
certificates followed by the root CA certificate.

--
Arno Garrels



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


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Yuri Semenov
>>BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
Regards,

Sorry, again me. 7.18 fix not for my problem.
Try check this page with v7.18 or any other version with
httpoEnableContentCoding option. THttpCli can't decode this gzip -
http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&lang=ru&artist=Adele&api_key=76f07d681bbb51f8003bf08a97432031,
THttpCli return empty TStream.

My site now down, but please, check this example -
http://cs1.clodo.ru/v1/CLODO_fe484f085c6a7eb7544760f6fd5fa6e5/public/HttpCliBug.dpr,
u understand what i mean. I long time use my patch to all new versions
OverbyteIcsHttpProt.pas :\
--
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


Re: [twsocket] HTTP SSL Server vs p7b certificate's format

2011-10-04 Thread Arno Garrels
ROQUES Guillaume wrote:
>> That's confusing description. Did he buy a SSL server certificate in
>> order to access your server? Or are you talking about client
>> certificates?
 
> The customer already have a SSL certificate on his domain, so he want
> that my HttpServer use SSL with this certificate.

Do you ask for how to get a ICS TSslHttpServer working with a bought
server certificate?

> 
>> Please provide more details about how you setup the component to
>> use your the certificates. What HTTP client application is used?
> Here is my initialization :
>> interface
>> [...]
>> 
>> TMyService = class(TService)
>> SslHttpServer: TSslHttpServer;
>> TWSslAvlSessionCache: TSslAvlSessionCache;
>> TWSslContext: TSslContext;
>> [...]
>> end;
>> 
>> implementation
>> [...]
>> 
>> procedure TMyService.ServiceStart(Sender: TService; var Started:
>> Boolean); begin
>> [...]
>> 
>> SslCertFile := APath + 'MyCertificate.pem';
>> SslPassPhrase := '';
>> SslPrivKeyFile := APath + 'MyCertificate.pem';
>> SslCAFile := APath + 'MyCertificate.pem';
>> SslCAPath := APath;
>> SslVerifyPeer := False;
>> 
>> // Pre-loads OpenSSL DLL's
>> TWSslContext.InitContext;
>> DoLog('OpenSslVersion : ' + OpenSslVersion);
>> DoLog(OpenSslCompilerFlags + #13#10 + OpenSslBuiltOn
>> + #13#10 + OpenSslPlatForm + #13#10 + OpenSslDir);
>> SslHttpServer.Start;
>> end;
>
 
Open the MyCertificate.pem in a text editor that understands UNIX line
breaks. Does MyCertificate.pem include multiple certificates?
With a bought commercial certificate there should be at least 2 certificates
included in MyCertificate.pem. 
Make sure that the order of these certificates is correct.
First has to be the server certificate followed by possible intermediate
certificates followed by the root CA certificate.

--
Arno Garrels

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


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Arno Garrels
Fastream Technologies wrote:
> We had actually paid for HttpCli bug fixes to Arno. I hope he will
> show up and fix it soon. We do not use content coding so I do not
> think Yuri's fix would work.

I made your test case working by a fix of chunked decoding.
So what actually is the problem now?
Without a simple test case I won't look at it.

-- 
Arno Garrels


> 
> BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
> Regards,
> 
> SZ
> 
> On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
> an...@magsys.co.uk> wrote:
> 
>>> I wrote about a similar bug, but got no response from the
>>> administration.
>> 
>> It is on my list of things to investigate this week, but paying work
>> has to come before minor bug fixes like this.
>> 
>> Angus
>> 
>> --
>> 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
--
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


Re: [twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Fastream Technologies
We had actually paid for HttpCli bug fixes to Arno. I hope he will show up
and fix it soon. We do not use content coding so I do not think Yuri's fix
would work.

BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
Regards,

SZ

On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I wrote about a similar bug, but got no response from the
> > administration.
>
> It is on my list of things to investigate this week, but paying work has
> to come before minor bug fixes like this.
>
> Angus
>
> --
> 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
>
--
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


Re: [twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Angus Robertson - Magenta Systems Ltd
> I wrote about a similar bug, but got no response from the 
> administration.

It is on my list of things to investigate this week, but paying work has
to come before minor bug fixes like this.

Angus

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


Re: [twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Yuri Semenov
I wrote about a similar bug, but got no response from the administration.
Try my fix:
*.pas file with fix -
http://vkmusic.citynov.ru/overbyte/OverbyteIcsHttpProt.pas

--
Old message:
>>Http Cli not decode the gzip data from this url (specific header, does not
work FContentCodingHnd.Complete).
>>Try example - http://vkmusic.citynov.ru/overbyte/HttpCliBug.dpr
>>Fix for bug - http://vkmusic.citynov.ru/overbyte/ContentCoding_fix.patch
>>
>>Yuriy
--
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


[twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Fastream Technologies
Hello all,

Data is pumped in the header in this case. I mean there is no ondocdata
called!

The conditionals I use are,
NO_STRICT;NOFORMS;NO_DEBUG_LOG;USE_SSL;SECURITY_WIN32;NO_ADV_MT;NO_ADVANCED_HTTP_CLIENT_FEATURES

Hope somebody could help.

Regards,

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


Re: [twsocket] HTTP SSL Server vs p7b certificate's format

2011-10-04 Thread ROQUES Guillaume

That's confusing description. Did he buy a SSL server certificate in
order to access your server? Or are you talking about client certificates?
The customer already have a SSL certificate on his domain, so he want 
that my HttpServer use SSL with this certificate.



Please provide more details about how you setup the component to
use your the certificates. What HTTP client application is used?

Here is my initialization :

interface
[...]

TMyService = class(TService)
SslHttpServer: TSslHttpServer;
TWSslAvlSessionCache: TSslAvlSessionCache;
TWSslContext: TSslContext;
[...]
end;

implementation
[...]

procedure TMyService.ServiceStart(Sender: TService; var Started: Boolean);
begin
[...]

SslCertFile := APath + 'MyCertificate.pem';
SslPassPhrase := '';
SslPrivKeyFile := APath + 'MyCertificate.pem';
SslCAFile := APath + 'MyCertificate.pem';
SslCAPath := APath;
SslVerifyPeer := False;

// Pre-loads OpenSSL DLL's
TWSslContext.InitContext;
DoLog('OpenSslVersion : ' + OpenSslVersion);
DoLog(OpenSslCompilerFlags + #13#10 + OpenSslBuiltOn
+ #13#10 + OpenSslPlatForm + #13#10 + OpenSslDir);
SslHttpServer.Start;
end;


GrateFully,

Guillaume ROQUES


Le 20:59, Arno Garrels a écrit :

ROQUES Guillaume wrote:

Hi everyone,

I use ICS HTTPServer via SSL and a Self-Signed certificate (It is OK
for an internal use). One of my customer had to access our Web server
from outside and bought a ceritificate to a Certificate Authority
(GlobalSign) in p7b format.

That's confusing description. Did he buy a SSL server certificate in
order to access your server? Or are you talking about client certificates?


Could you explain me if I have to convert this format into PEM format
OR is there a way to configure ICS server SSL to handle this kind of
format ?

Yes, you have to convert it to PEM format. p7b is a bundle format that
usually contains multiple certificates, that is the certificate chain
up to the root certificate in most cases.

I tried to convert this p7b format with openssl command line

:

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem|

I don't know whether or not that command line is correct from top of my
head. However openssl is capable to convert p7b to PEM nicely.


But I got a "SslHandshake failed" from ICS HTTPserver..

Please provide more details about how you setup the component to
use your the certificates. What HTTP client application is used?


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


Re: [twsocket] ICS Delphi 7 installation error

2011-10-04 Thread Angus Robertson - Magenta Systems Ltd
> P.S.: I already sent this email one time, but had no reply in the 
> following days, so I try it another time. Please anyone help me !

You have sent this same email at least five times, and had at least three
replies, all of which have ignored.  

Look back in the archive to see the replies you missed.  Essentially, you
are install an old version of ICS for an old compiler, not for XE2. 

Angus

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


[twsocket] ICS Delphi 7 installation error

2011-10-04 Thread Karlinchen

Hello,
I'm a complete newbie to Delphi. I have installed yesterday from the 
embarcadero website the Delphi XE2 trial version first and want to add 
ICS v7 to it.
As told in the readme file I have opened the OverbyteIcsD7Run.dpk 
project and try to build it but I get the error from the compiler:
[DCC Warning] OverbyteIcsWndControl.pas(1067): W1024 Combining signed 
and unsigned types - widened both operands
[DCC Warning] OverbyteIcsWndControl.pas(1067): W1023 Comparing signed 
and unsigned types - widened both operands
[DCC Warning] OverbyteIcsWndControl.pas(1079): W1024 Combining signed 
and unsigned types - widened both operands
[DCC Error] OverbyteIcsWSocket.pas(2220): E2037 Declaration of 'Dup' 
differs from previous declaration
[DCC Warning] OverbyteIcsWSocket.pas(6369): W1023 Comparing signed and 
unsigned types - widened both operands
[DCC Warning] OverbyteIcsWSocket.pas(16081): W1023 Comparing signed and 
unsigned types - widened both operands
[DCC Fatal Error] OverbyteIcsD7Run.dpk(70): F2063 Could not compile used 
unit 'OverbyteIcsWSocket.pas'


I think what causes it not to function is the Dup declaration, the 
warnings can be ignored (or am I wrong?)

When looking up the code I find in the OverbytIcsWsocket.pas:
1235 procedure   Dup(NewHSocket : TSocket); virtual;
and
 2220 procedure   Dup(NewHSocket: Integer); override;

I don't understand because once the procedure dup has a parameter 
declared as TSocket type, and the overrriding one as Integer type, so it 
must cause that compiler error, or not?


Thanks for helping me
DesignMedia

P.S.: I already sent this email one time, but had no reply in the 
following days, so I try it another time. Please anyone help me !


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