A web server is used to process http request and send a response back to the client browser. I was wondering how does a client browser send a http request to the web server? Is it done via socket connection? Which socket connection is used to establish a connection with tomcat web server? Is it using Java sockets or the client browser have it's own socket to establish a connection with the Tomcat server? Or does the client browser uses the socket provided by the operating system to establish a connection to the Tomcat server?
solomon_13000
14
Junior Poster in Training
Recommended Answers
Jump to PostHuh? I am not sure about your question. I don't think a servlet uses socket connection but rather has a listener on a port. I think a HTTP request from a web browser gets through layers of Internet architecture, and the servlet picks up. Then it sends back through the …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.