Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP web server

 
Chak Terlapu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I need to write a HTTP web server which responds to HTTP GET messages. Could anyone guide me how I can do this.
Thanks
chak
 
chetan nain
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
refer JAVA2 complete reference by patrick naughton
caching http proxy server explained
 
Alagu Seenivasan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a good example with code in "Core Servlets and Java Server Pages" by "Marty Hall"
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this thread to Servlets and JSP forum.
Ajith
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are plenty of examples to download, but if you don't want to just grab someone else's attempt, the best place to start is with the original HTTP RFC. Although wordy, this defines the basic behaviour of a http server. Writing something to just respond to simple GET requests should be no more that 20 lines of Java or so.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic