• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Ranch Hand
Posts: 115
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 4
Mac OS X Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 115
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks to all .....
 
Their achilles heel is the noogie! Give them noogies tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic