This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes java : How to receive HTTP get request using java socket programming and generate HTTP response . Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java : How to receive HTTP get request using java socket programming and generate HTTP response ." Watch "java : How to receive HTTP get request using java socket programming and generate HTTP response ." New topic
Author

java : How to receive HTTP get request using java socket programming and generate HTTP response .

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

i am new for java server socket programming . i want to build an small client server application in java . in this application the client is web browser and server is core java program . i am little bit know about command line client program that deal with java server . but with web browser i have no idea.


With Regards :-
Harmeet Singh
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
While HTTP is a pretty simple protocol in its most basic incarnation, building a browser as a client is very ambitious. Maybe start with the server-side and use an existing browser as the client. That way you don't have to worry whether the client or the server is the problem in case something doesn't work.

I assume you have worked through http://docs.oracle.com/javase/tutorial/networking/index.html, especially the section on "All about Sockets", and gotten the client/server pair discussed there to work. If not, that should be the first step.

After that, read the HTTP specification to learn what an HTTP server needs to accept and respond to.


Ping & DNS - my free Android networking tools app
A Miguel
Greenhorn

Joined: Mar 02, 2013
Posts: 4

This is a great primer on HTTP too if you find the spec a bit hard to follow:

http://www.jmarshall.com/easy/http/
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

thanks to all .....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java : How to receive HTTP get request using java socket programming and generate HTTP response .
 
Similar Threads
access denied (SocketPermission 127.0.0.1:1099 connect,resolve)
server response
socket programming using servlet
how run this server over internet
Send a file across the network