LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ??How to identify proxy packets?? (https://www.linuxquestions.org/questions/programming-9/how-to-identify-proxy-packets-152928/)

Hammo 03-03-2004 04:19 AM

??How to identify proxy packets??
 
Hi all!

I am writing a program which at some point should check if the packet is destined to a proxy server.

I have no clue how to check the packet for this. :(
I searched the net for some info but didn't get anything useful except that it is mentioned in the http header in some way.

can someone help?

thanks

doraiashok 03-03-2004 06:12 AM

If you are talking about a HTTP proxy server then it can be easily identified.

When a HTTP request is sent to a web server then the URL field in the request packet does not contain the entire URL i.e., it is not what you see in the address bar. It starts with a "/".

When a HTTP request is sent to a web server via a HTTP Proxy then the web browser sends the HTTP request with the URL field exactly the same as in the address bar. Although the request is sent to the proxy and not to the web server.


All times are GMT -5. The time now is 02:51 PM.