Re: [twsocket] Writing a transparent HTTP proxy

2006-10-04 Thread Kris Leech
Hi, did you find the answer to this?

Fastream Technologies wrote:

Hello,

I have a few issues left for understanding how a transparent proxy works. I
talked with a friend in an ISP how they configure them and he said they use
Layer4 switches to redirect all HTTP port 80 traffic to the proxy even
though the end user does not configures his browser settings for the proxy.
Now with our reverse proxy experience, all is well except one thing: How
does the proxy know which IP to connect to when the end user uses HTTP/1.0
with no host header? Is transparent proxies HTTP/1.1 only? How does the
Layer4 switch understands what protocol does the end user uses if it can
read just up to layer 4 (TCP)?

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] Writing a transparent HTTP proxy

2006-10-04 Thread Anatoly Podgoretsky
Hi!

Transparent proxy works as mediator, listen all incoming request on port 80 or 
any predefined ports. 
Then check if page in cache and if not ask site for page, move it cache and 
returns to caller. 

Caller don't know is proxy or not, because it is transparently for him.

With best regards,
Anatoly Podgoretsky



- Original Message - 
From: Kris Leech [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, October 04, 2006 11:18 AM
Subject: Re: [twsocket] Writing a transparent HTTP proxy


 Hi, did you find the answer to this?
 
 Fastream Technologies wrote:
 
Hello,

I have a few issues left for understanding how a transparent proxy works. I
talked with a friend in an ISP how they configure them and he said they use
Layer4 switches to redirect all HTTP port 80 traffic to the proxy even
though the end user does not configures his browser settings for the proxy.
Now with our reverse proxy experience, all is well except one thing: How
does the proxy know which IP to connect to when the end user uses HTTP/1.0
with no host header? Is transparent proxies HTTP/1.1 only? How does the
Layer4 switch understands what protocol does the end user uses if it can
read just up to layer 4 (TCP)?

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
-- 
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] Writing a transparent HTTP proxy

2006-10-04 Thread Fastream Technologies
Not exactly. No real answer for my actual question...


On 10/4/06, Kris Leech [EMAIL PROTECTED] wrote:

 Hi, did you find the answer to this?

 Fastream Technologies wrote:

 Hello,
 
 I have a few issues left for understanding how a transparent proxy works.
 I
 talked with a friend in an ISP how they configure them and he said they
 use
 Layer4 switches to redirect all HTTP port 80 traffic to the proxy even
 though the end user does not configures his browser settings for the
 proxy.
 Now with our reverse proxy experience, all is well except one thing: How
 does the proxy know which IP to connect to when the end user uses
 HTTP/1.0
 with no host header? Is transparent proxies HTTP/1.1 only? How does the
 Layer4 switch understands what protocol does the end user uses if it can
 read just up to layer 4 (TCP)?
 
 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




-- 
Fastream Technologies
Software IQ: Innovation  Quality
www.fastream.com | Email: [EMAIL PROTECTED] | Tel: +90-312-223-2830
-- 
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] FTP Client Bug?

2006-10-04 Thread DZ-Jay

On Oct 3, 2006, at 16:53, rick cusimano wrote:

 Imagine you have 2 files, within the following directories:

 a\b\c\d\file1.txt
 1\2\3\file2.txt

 If you try to change to one directory then to the other, you end up
 retrieving the same file twice, instead of 1 file from each directory.
 !SNIP

Please post some code, or at least pseudo-code explaining the algorithm 
you are using.

Are you checking the return code of CWD when you change directories?  
One thing to note is that if the CWD fails, the directory won't be 
changed, so you must make sure to check for errors after changing 
working directories.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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

2006-10-04 Thread Olivier BERTHELOT
Hi,
Does anybody know how to connect; then send requests and retrieve results
from an ldap server (e-mail accounts for example).
Tnx for any suggestion.
-- 
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] FTP Client Bug?

2006-10-04 Thread rick cusimano
Hello,

Thanks DZ-Jay, you hit the nail on the head! Sorted it =o)

Cheers

Rick

On Oct 3, 2006, at 16:53, rick cusimano wrote:

Imagine you have 2 files, within the following directories:

a\b\c\d\file1.txt
1\2\3\file2.txt

If you try to change to one directory then to the other, you end up
retrieving the same file twice, instead of 1 file from each directory.
!SNIP

Please post some code, or at least pseudo-code explaining the algorithm
you are using.

Are you checking the return code of CWD when you change directories?
One thing to note is that if the CWD fails, the directory won't be
changed, so you must make sure to check for errors after changing
working directories.


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