IntelliJ Java IDE
The moose likes Distributed Java and the fly likes Http proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Http proxy" Watch "Http proxy" New topic
Author

Http proxy

leticia freitaz
Greenhorn

Joined: Nov 28, 2011
Posts: 3
Hello!

I'm trying to develop a proxy http pool threads!
I have some difficult to get it.
When I'm entering the url I can see the HTML code, however, when I use the browser I can't get any result!
Can anyone give me some tips to continue?

Here is the code already done:


Thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 13842

I wouldn't expect code which reads from System.in and writes to System.out to work in a browser. Could you explain exactly how you ran that code in the browser?
leticia freitaz
Greenhorn

Joined: Nov 28, 2011
Posts: 3
It's a server proxy code, I want configure it to run with an IP in a browser.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 13842

Then you haven't finished the code. Your code which processes the request from the browser has to get its URL from that request, not from something which came from the command line when you started the server running. And it has to return the response from the URL back to the browser, not write it to the command line.
 
 
subject: Http proxy
 
Threads others viewed
why thread is in running or runnable state why it is not terminated ?
keep getting this exception Address already in use: JVM_Bind
whats wrong in my server code ?
threads concurrency problem
How to Change the File Name for Each Uploaded Files to the Socket Server?
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture