Re: [twsocket] MagFtp and SslContext

2013-04-17 Thread Angus Robertson - Magenta Systems Ltd
 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


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread Angus Robertson - Magenta Systems Ltd
 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

--
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] MagFtp and SslContext

2013-04-17 Thread Allan Fernandes
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


Re: [twsocket] MagFtp and SslContext

2013-04-17 Thread François Piette
 My application is a LAN backup application and users want to use FTP to
additionally secure their data. 

SSL certificates are used to make sure the client connect to the server it
thinks it connect and that the server is sure about who is the client.
Encryption of data take place even if there is no certificate involved.

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


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread François Piette
Given your answer, I probably miunderstood your question.
Maybe you should reformulate using other words and elaborating a little bit 
more.

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




-Message d'origine-
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la 
part de myiisvif
Envoyé : mercredi 17 avril 2013 03:23
À : twsocket
Objet : Re: [twsocket] i using the THttpAppSrv in my app

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

[twsocket] unsubscribe

2013-04-17 Thread Sease, Darin E.


-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

Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread myiisvif
failed!

i think there is nothing about wmi. but the ThttpAppsrv's probleam.

does everyboy can make a simple srv_app to test it.?






myiisvif

From: Angus Robertson - Magenta Systems Ltd
Date: 2013-04-17 14:40
To: twsocket
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 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

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