-----Original Message-----
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On 
Behalf Of twsocket-requ...@elists.org
Sent: Wednesday, April 17, 2013 8:00 AM
To: twsocket@elists.org
Subject: TWSocket Digest, Vol 521, Issue 2

Send TWSocket mailing list submissions to
        twsocket@elists.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
or, via email, send a message with subject or body 'help' to
        twsocket-requ...@elists.org

You can reach the person managing the list at
        twsocket-ow...@elists.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of TWSocket digest..."


Today's Topics:

   1. i using the THttpAppSrv in my app (myiisvif)
   2. Re: i using the THttpAppSrv in my app
      (Angus Robertson - Magenta Systems Ltd)
   3. Re: i using the THttpAppSrv in my app (Fran?ois Piette)
   4. Re: i using the THttpAppSrv in my app (myiisvif)
   5. Re: i using the THttpAppSrv in my app (myiisvif)
   6. Re: MagFtp and SslContext (Allan Fernandes)
   7. Re: MagFtp and SslContext (Angus Robertson - Magenta Systems Ltd)
   8. Re: i using the THttpAppSrv in my app
      (Angus Robertson - Magenta Systems Ltd)
   9. Re: MagFtp and SslContext (Allan Fernandes)


----------------------------------------------------------------------

Message: 1
Date: Tue, 16 Apr 2013 21:30:58 +0800
From: myiisvif <myiis...@gmail.com>
Subject: [twsocket] i using the THttpAppSrv in my app
To: twsocket <twsocket@elists.org>
Message-ID: <201304162130552797...@gmail.com>
Content-Type: text/plain;       charset="gb2312"

i found if i call the wmi ole object to get wmi data,THttpAppSrv  will hung and 
lose the 80 connection.

procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
  var Flags: THttpGetFlag);

the call the wmi object...............

for just two or three times.

why? bug?





myiisvif

------------------------------

Message: 2
Date: Tue, 16 Apr 2013 16:09 +0100 (BST)
From: "Angus Robertson - Magenta Systems Ltd" <an...@magsys.co.uk>
Subject: Re: [twsocket] i using the THttpAppSrv in my app
To: twsocket@elists.org
Message-ID: <memo.20130416160901.131...@magsys.adsl.magsys.co.uk>
Content-Type: text/plain; charset="iso-8859-1"

> i found if i call the wmi ole object to get wmi data,THttpAppSrv will 
> hung and lose the 80 connection.

Calling WMI functions presumably to return information on a web page is 
unlikely to something many people have done, I've certainly not. 

Are you using MagWmiGetInfoEx or some other WMI component? 

What WMI class are you calling? 

Angus



------------------------------

Message: 3
Date: Tue, 16 Apr 2013 20:25:01 +0200
From: Fran?ois Piette <francois.pie...@skynet.be>
Subject: Re: [twsocket] i using the THttpAppSrv in my app
To: "'ICS support mailing'" <twsocket@elists.org>
Message-ID: <00a801ce3acf$b6526ee0$22f74ca0$@skynet.be>
Content-Type: text/plain;       charset="iso-8859-1"

> i found if i call the wmi ole object to get wmi data,THttpAppSrv  will
hung and lose the 80 connection.
>procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
>  var Flags: THttpGetFlag);
>the call the wmi object...............
>for just two or three times.
>why? bug?

I'm not sure I understand clearly your problem...
If the call you are doing is blocking, then you should consider moving it to a 
worker thread so that THttpAppSrv can serve other connections meanwhile.
You may call AnswerXXX and Finish when the thread has finished his work.

--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com






------------------------------

Message: 4
Date: Wed, 17 Apr 2013 09:19:40 +0800
From: myiisvif <myiis...@gmail.com>
Subject: Re: [twsocket] i using the THttpAppSrv in my app
To: twsocket <twsocket@elists.org>
Message-ID: <201304170919378175...@gmail.com>
Content-Type: text/plain;       charset="gb2312"

thank Angus Robertson!

yes,
i using WbemScripting_TLB.pas,  also the uWmiDelphiClass.pas (from the google 
code). which just the oleobject.

in them, i just get this iis's filter status and iis's filter name. and return 
them to my webclient.







myiisvif

From: Angus Robertson - Magenta Systems Ltd
Date: 2013-04-16 23:09
To: twsocket
Subject: Re: [twsocket] i using the THttpAppSrv in my app
> i found if i call the wmi ole object to get wmi data,THttpAppSrv  
> will hung and lose the 80 connection.

Calling WMI functions presumably to return information on a web page is
unlikely to something many people have done, I've certainly not. 

Are you using MagWmiGetInfoEx or some other WMI component? 

What WMI class are you calling? 

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

------------------------------

Message: 5
Date: Wed, 17 Apr 2013 09:23:18 +0800
From: myiisvif <myiis...@gmail.com>
Subject: Re: [twsocket] i using the THttpAppSrv in my app
To: twsocket <twsocket@elists.org>
Message-ID: <201304170923162948...@gmail.com>
Content-Type: text/plain;       charset="utf-8"

the request only can be added to the AddGetHandler  proc.
and it can not using the MASK. eg:

 myweb.AddGetHandler('/*.asp',tasp_proc); 

can be??

that is why i will use the Tsrv_myapp.mywebGetDocument proc.  because it can be 
hold everything.

btw,.AddGetHandler is a thread work mode??




myiisvif

From: Fran?ois Piette
Date: 2013-04-17 02:25
To: 'ICS support mailing'
Subject: Re: [twsocket] i using the THttpAppSrv in my app
> i found if i call the wmi ole object to get wmi data,THttpAppSrv  will
hung and lose the 80 connection.
>procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
>  var Flags: THttpGetFlag);
>the call the wmi object...............
>for just two or three times.
>why? bug?

I'm not sure I understand clearly your problem...
If the call you are doing is blocking, then you should consider moving it to
a worker thread so that THttpAppSrv can serve other connections meanwhile.
You may call AnswerXXX and Finish when the thread has finished his work.

-- 
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com




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

------------------------------

Message: 6
Date: Wed, 17 Apr 2013 10:46:59 +0530
From: Allan Fernandes <fernandes.a.al...@gmail.com>
Subject: Re: [twsocket] MagFtp and SslContext
To: ICS support mailing <twsocket@elists.org>
Message-ID:
        <capz2agsnuloh-6rtwtfts5bqszqt_xhh66lnnye2sz7j9aj...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Angus,

My application is a LAN backup application and users want to use FTP to
additionally
secure their data. I do not have much knowledge about SSL but I presume SSL
certificates are required if my client decides to use a FTPS site. Can you
guide me, I did not fully understand you above email ?



On Tue, Apr 16, 2013 at 2:20 PM, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > How do I specify Ssl Certificates in MagFtp component ?
>
> Sorry, certificate chain and host checking was never fully implementing
> in TMagFtp.  There is a lot of commented out code, probably taken from
> the ICS FTP client SSL demo, that could be restored, but it's untested,
> and includes a modal dialog box that is not ideal for a component.
>
> 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
>


------------------------------

Message: 7
Date: Wed, 17 Apr 2013 07:40 +0100 (BST)
From: "Angus Robertson - Magenta Systems Ltd" <an...@magsys.co.uk>
Subject: Re: [twsocket] MagFtp and SslContext
To: twsocket@elists.org
Message-ID: <memo.20130417074042.120...@magsys.adsl.magsys.co.uk>
Content-Type: text/plain; charset="iso-8859-1"

> I do not have much knowledge about SSL but I  presume SSL 
> certificates are required if my client decides to use a FTPS site. 

No, it is not necessary for client software to check SSL certificates to
use SSL connections, the data is still encrypted.  Checking the
certificate is an extra level of security to ensure the data is coming
from the correct server.

Certificate checking can be done, most of the code is there in TMagFtp,
but there is an extra overhead for each connection, and more errors to
handle if the certificate fails checks. 

Server software always needs a SSL certificate. 

Angus




------------------------------

Message: 8
Date: Wed, 17 Apr 2013 07:40 +0100 (BST)
From: "Angus Robertson - Magenta Systems Ltd" <an...@magsys.co.uk>
Subject: Re: [twsocket] i using the THttpAppSrv in my app
To: twsocket@elists.org
Message-ID: <memo.20130417074043.120...@magsys.adsl.magsys.co.uk>
Content-Type: text/plain; charset="iso-8859-1"

> i using WbemScripting_TLB.pas,  also the uWmiDelphiClass.pas (from
> the google code). which just the oleobject.

Try using MagWmiGetInfoEx from:

http://www.magsys.co.uk/delphi/magwmi.asp

it should not take long to modify your application and will eliminate
possible problems with the code you found. 

Angus



------------------------------

Message: 9
Date: Wed, 17 Apr 2013 12:15:14 +0530
From: Allan Fernandes <fernandes.a.al...@gmail.com>
Subject: Re: [twsocket] MagFtp and SslContext
To: ICS support mailing <twsocket@elists.org>
Message-ID:
        <capz2agqgjsjkj8xr-vwnsy71zbndz5h+u49te+wa60tvzju...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

That is a huge relief. Thank You.


On Wed, Apr 17, 2013 at 12:10 PM, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I do not have much knowledge about SSL but I  presume SSL
> > certificates are required if my client decides to use a FTPS site.
>
> No, it is not necessary for client software to check SSL certificates to
> use SSL connections, the data is still encrypted.  Checking the
> certificate is an extra level of security to ensure the data is coming
> from the correct server.
>
> Certificate checking can be done, most of the code is there in TMagFtp,
> but there is an extra overhead for each connection, and more errors to
> handle if the certificate fails checks.
>
> Server software always needs a SSL certificate.
>
> 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

End of TWSocket Digest, Vol 521, Issue 2
****************************************
--
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