Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Dod
Hello Maurizio,

Yes, .pac proxy script may be more difficult to manage.

I  could  do pure Wininet async download so i'll be sure to follow the
right proxy settings but its hard to leave ICS once you tasted it ;-)

Next  time i'll see Bill Gates, I'll ask him to implement some Wininet
IsLocalAddr function !

regards.



 OK  thanks  i'll look at it. My need is very basic as it is only to be
 sure to download a file from specific URL, so no script envolved.

ML A script could be involved if Automatic detect settings is set, and is
ML involved if Use automatic configuration script is set.

 I  think it can be done with regexp (or basic '*' masked string search
 routine) on exception list, getting all IP attached to network card(s)
 (with  netmask) and excluding proxy if IP is inside any of the mask of
 the IP(s).

ML This could work for local addresses.
ML But if you have more than one interface (real NIC, emulated NIC or dial-up) 
the
ML problem is that you should detect which interface will be used to reach a
ML specific IP, since each dial-up has it own proxy settings while there are 
only
ML one for the LAN.

ML I never had this situation so I delayed to solve it :-)


ML Bye, Maurizio.

ML 
ML This mail has been sent using Alpikom webmail system
ML http://www.alpikom.it


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Arno Garrels
Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some Wininet
 IsLocalAddr function !

Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in 
OverbyteIcsWinsock2.pas?

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html 



 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only to
 be sure to download a file from specific URL, so no script envolved.
 
 ML A script could be involved if Automatic detect settings is set,
 and is ML involved if Use automatic configuration script is set.
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is inside
 any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which interface
 will be used to reach a ML specific IP, since each dial-up has it
 own proxy settings while there are only ML one for the LAN.
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Maurizio Lotauro
Scrive Dod [EMAIL PROTECTED]:

 Hello Maurizio,
 
 Yes, .pac proxy script may be more difficult to manage.

Yes, this is why I made the ProxyInfo component. It does this automatically.

 I  could  do pure Wininet async download so i'll be sure to follow the
 right proxy settings but its hard to leave ICS once you tasted it ;-)

Guess it, the component use an internal instance of THttpCli do download the
script :-)

 Next  time i'll see Bill Gates, I'll ask him to implement some Wininet
 IsLocalAddr function !

FYI Winnet is old (but not yet deprecated), the new is WinHTTP.


Bye, Maurizio.


This mail has been sent using Alpikom webmail system
http://www.alpikom.it

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Dod
Hello Arno,

I don't have OverbyteIcsWinsock2.pas unit in my ICS V6 installation...

Before  I  need some network oriented function, I usually first try to
look  around  ICS  sources because there are a lot of usefull internal
functions already implemented, FileMD5 or ParseURL are two examples of
functions I was about to do myself that I found inside ICS.

regards.

AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some Wininet
 IsLocalAddr function !

AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in 
OverbyteIcsWinsock2.pas?

AG --
AG Arno Garrels [TeamICS]
AG http://www.overbyte.be/eng/overbyte/teamics.html 



 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only to
 be sure to download a file from specific URL, so no script envolved.
 
 ML A script could be involved if Automatic detect settings is set,
 and is ML involved if Use automatic configuration script is set.
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is inside
 any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which interface
 will be used to reach a ML specific IP, since each dial-up has it
 own proxy settings while there are only ML one for the LAN.
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Fastream Technologies
Hello Dod,

 functions already implemented, FileMD5 or ParseURL are two examples of
 functions I was about to do myself that I found inside ICS.

If you need file hashing with MD5 and/or SHA1, have a look at my code at 
http://www.fastream.com/md5extractor.php which does both with single file 
read and good buffering. Freeware and open source (C++ but easy to translate 
since it uses ICS ;) ).

Best Regards,

SZ


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Arno Garrels
Dod wrote:
 Hello Arno,
 
 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6 installation...

Then you are using an old version. The unit also includes a function
to get systems interface list easily.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
 

 
 Before  I  need some network oriented function, I usually first try to
 look  around  ICS  sources because there are a lot of usefull internal
 functions already implemented, FileMD5 or ParseURL are two examples of
 functions I was about to do myself that I found inside ICS.
 
 regards.
 
 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !
 
 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas? 
 
 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only
 to be sure to download a file from specific URL, so no script
 envolved. 
 
 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script is
 set. 
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is
 inside any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each dial-
 up has it own proxy settings while there are only ML one for the
 LAN. 
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Fastream Technologies
In my copy of BCB2006, if I do NOT remove the unit winsock2, then the 
compiler does NOT install the entire project package.

Regards,

SZ

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, May 19, 2007 6:21 PM
Subject: Re: [twsocket] HTTPCli and proxy settings


 Dod wrote:
 Hello Arno,

 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6 installation...

 Then you are using an old version. The unit also includes a function
 to get systems interface list easily.

 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html



 Before  I  need some network oriented function, I usually first try to
 look  around  ICS  sources because there are a lot of usefull internal
 functions already implemented, FileMD5 or ParseURL are two examples of
 functions I was about to do myself that I found inside ICS.

 regards.

 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !

 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas?

 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html




 regards.



 OK  thanks  i'll look at it. My need is very basic as it is only
 to be sure to download a file from specific URL, so no script
 envolved.

 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script is
 set.

 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is
 inside any of the mask of the IP(s).

 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each dial-
 up has it own proxy settings while there are only ML one for the
 LAN.

 ML I never had this situation so I delayed to solve it :-)


 ML Bye, Maurizio.

 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Arno Garrels
Fastream Technologies wrote:
 In my copy of BCB2006, if I do NOT remove the unit winsock2, then the
 compiler does NOT install the entire project package.

Sorry, that's not true, I tested this several times in BCB2006.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

 
 Regards,
 
 SZ
 
 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Saturday, May 19, 2007 6:21 PM
 Subject: Re: [twsocket] HTTPCli and proxy settings
 
 
 Dod wrote:
 Hello Arno,
 
 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6
 installation... 
 
 Then you are using an old version. The unit also includes a function
 to get systems interface list easily.
 
 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 Before  I  need some network oriented function, I usually first try
 to look  around  ICS  sources because there are a lot of usefull
 internal functions already implemented, FileMD5 or ParseURL are two
 examples of functions I was about to do myself that I found inside
 ICS. 
 
 regards.
 
 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !
 
 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas?
 
 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only
 to be sure to download a file from specific URL, so no script
 envolved.
 
 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script
 is set.
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is
 inside any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated
 NIC or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each
 dial- up has it own proxy settings while there are only ML one
 for the LAN.
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Fastream Technologies
I use a customized package with: 
USE_SSL;NOFORMS;NO_DEBUG_LOG;SECURITY_WIN32;

Could you try with these as well?

Best Regards,

SZ

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, May 19, 2007 6:46 PM
Subject: Re: [twsocket] HTTPCli and proxy settings


 Fastream Technologies wrote:
 In my copy of BCB2006, if I do NOT remove the unit winsock2, then the
 compiler does NOT install the entire project package.

 Sorry, that's not true, I tested this several times in BCB2006.

 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html


 Regards,

 SZ

 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Saturday, May 19, 2007 6:21 PM
 Subject: Re: [twsocket] HTTPCli and proxy settings


 Dod wrote:
 Hello Arno,

 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6
 installation...

 Then you are using an old version. The unit also includes a function
 to get systems interface list easily.

 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html



 Before  I  need some network oriented function, I usually first try
 to look  around  ICS  sources because there are a lot of usefull
 internal functions already implemented, FileMD5 or ParseURL are two
 examples of functions I was about to do myself that I found inside
 ICS.

 regards.

 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !

 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas?

 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html




 regards.



 OK  thanks  i'll look at it. My need is very basic as it is only
 to be sure to download a file from specific URL, so no script
 envolved.

 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script
 is set.

 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is
 inside any of the mask of the IP(s).

 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated
 NIC or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each
 dial- up has it own proxy settings while there are only ML one
 for the LAN.

 ML I never had this situation so I delayed to solve it :-)


 ML Bye, Maurizio.

 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Arno Garrels
Fastream Technologies wrote:
 I use a customized package with:
 USE_SSL;NOFORMS;NO_DEBUG_LOG;SECURITY_WIN32;

That's exactely what I tested for you when you claimed
the same thing a couple of weeks ago. If it doesn't compile
for you you are propably working with customized source code,
or new and old versions are scrambled. 

BTW: The TFtpServer requires OverbyteIcsWinsock2.pas.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

 
 Could you try with these as well?
 
 Best Regards,
 
 SZ
 
 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Saturday, May 19, 2007 6:46 PM
 Subject: Re: [twsocket] HTTPCli and proxy settings
 
 
 Fastream Technologies wrote:
 In my copy of BCB2006, if I do NOT remove the unit winsock2, then
 the compiler does NOT install the entire project package.
 
 Sorry, that's not true, I tested this several times in BCB2006.
 
 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 Regards,
 
 SZ
 
 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Saturday, May 19, 2007 6:21 PM
 Subject: Re: [twsocket] HTTPCli and proxy settings
 
 
 Dod wrote:
 Hello Arno,
 
 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6
 installation...
 
 Then you are using an old version. The unit also includes a
 function to get systems interface list easily.
 
 --
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 Before  I  need some network oriented function, I usually first
 try to look  around  ICS  sources because there are a lot of
 usefull internal functions already implemented, FileMD5 or
 ParseURL are two examples of functions I was about to do myself
 that I found inside ICS.
 
 regards.
 
 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !
 
 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas?
 
 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is
 only to be sure to download a file from specific URL, so no
 script envolved.
 
 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script
 is set.
 
 I  think it can be done with regexp (or basic '*' masked
 string search routine) on exception list, getting all IP
 attached to network card(s) (with  netmask) and excluding
 proxy if IP is inside any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated
 NIC or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each
 dial- up has it own proxy settings while there are only ML one
 for the LAN.
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Newbie problems with TWSocket.

2007-05-19 Thread balbaro
Hello all,

I'm puzzled to find out what i'm doing wrong.


I made a component with both the TWsocketserver and A TWsocket as client 
to be used in a app.

Server is running.

Can i connect and send a string in the same event ?

For example :

client.connect

wait for state connected

sendstring

close socket


Linemode := true and i added the endofline chars to the string.

Is this the correct method ?

Why is the first string always 'Server Ready ?


balbaro



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTPCli and proxy settings

2007-05-19 Thread Dod
Hello Arno,

Ouch...true ! I downloaded it 20 dec 2006 but forgot to install it !

regards.


AG Dod wrote:
 Hello Arno,
 
 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6 installation...

AG Then you are using an old version. The unit also includes a function
AG to get systems interface list easily.

AG --
AG Arno Garrels [TeamICS]
AG http://www.overbyte.be/eng/overbyte/teamics.html
 

 
 Before  I  need some network oriented function, I usually first try to
 look  around  ICS  sources because there are a lot of usefull internal
 functions already implemented, FileMD5 or ParseURL are two examples of
 functions I was about to do myself that I found inside ICS.
 
 regards.
 
 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !
 
 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas? 
 
 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only
 to be sure to download a file from specific URL, so no script
 envolved. 
 
 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script is
 set. 
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is
 inside any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each dial-
 up has it own proxy settings while there are only ML one for the
 LAN. 
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be