Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stuck making a simple HTTP proxy

 
C Johnston
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to make a simple HTTP proxy (works with 1.0 and GET method only). This is what I have so far, I'm not sure if I'm on the right track or not... Please see the comments in the code for where I am stuck thanks! This must work using firefox configured to proxy to localhost port xxxx (5555 in this example).



This is the parser class utilized in the above:

 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you writing a proxy server?  I'm not sure what the ProxyClient would do?
 
C Johnston
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Norman Radder wrote:Are you writing a proxy server?  I'm not sure what the ProxyClient would do?


A proxy server, that is bad naming on my part, sorry
 
C Johnston
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
heres what I've been working on, I think I have the structure right but it's not working so obviously there is something wrong in the syntax

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!