This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes problem in designing Http Proxy server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem in designing Http Proxy server" Watch "problem in designing Http Proxy server" New topic
Author

problem in designing Http Proxy server

RaghuKumar Kasa
Greenhorn

Joined: Feb 03, 2005
Posts: 1
I am designing an application Firewall.For that i have to develop a Htpp Proxy Server.How can i capture all the network traffic with the proxy server and block the packets from going to the server.Is there any java package to do this.Please help me.
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Assuming this your firewall setup is to have the firewall machine between the two networks, you need to set up a ServerSocket facing the outside world (the side making HTTP requests) on port 80 and listen for connections.

When you get a connection, you open a socket to the real web server on the other network niterface (unless you wish to block it). If the firewall doesn't physically separate the two networks, then HTTP clients must be configured to use your proxy server, or they'll just bypass it.
 
 
subject: problem in designing Http Proxy server
 
Similar Threads
Configuring tomcat as proxy server
AOP
Not able to open links from JEditorPane
Login problem in administrative tool
Http proxy