File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem in designing Http Proxy server" Watch "problem in designing Http Proxy server" New topic

problem in designing Http Proxy server

RaghuKumar Kasa

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.
I agree. Here's the link:
subject: problem in designing Http Proxy server
It's not a secret anymore!