jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes HTTP web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP web server" Watch "HTTP web server" New topic

HTTP web server

Chak Terlapu
Ranch Hand

Joined: Oct 20, 2000
Posts: 32
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.
chetan nain
Ranch Hand

Joined: Jun 21, 2000
Posts: 159
refer JAVA2 complete reference by patrick naughton
caching http proxy server explained
Alagu Seenivasan

Joined: Sep 30, 2000
Posts: 18
There is a good example with code in "Core Servlets and Java Server Pages" by "Marty Hall"
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
I am moving this thread to Servlets and JSP forum.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: HTTP web server
jQuery in Action, 3rd edition