This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 41155
    
  45
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 .....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java : How to receive HTTP get request using java socket programming and generate HTTP response .
 
Similar Threads
server response
Send a file across the network
access denied (SocketPermission 127.0.0.1:1099 connect,resolve)
socket programming using servlet
how run this server over internet