LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2004, 04:19 AM   #1
Hammo
Member
 
Registered: Feb 2003
Posts: 31

Rep: Reputation: 1
??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
 
Old 03-03-2004, 06:12 AM   #2
doraiashok
LQ Newbie
 
Registered: Nov 2003
Posts: 19

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
packets sent VS packets received fsasya Linux - Networking 0 07-18-2004 07:11 PM
Help me to identify a music... Mega Man X General 3 07-17-2004 04:16 AM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
Identify an encryption Encrypted Linux - Security 3 02-21-2003 03:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration