📜  Web 浏览器和 Web 服务器之间的区别

📅  最后修改于: 2021-10-19 05:06:19             🧑  作者: Mango

对于国际网络通信,我们需要网络浏览器和网络服务器。 Web 浏览器和服务器在建立连接方面起着重要作用。客户端发送对 Web 文档或服务的请求。从 Web 浏览器发送到 Web 服务器的消息称为 HTTP 请求。当 Web 服务器收到请求时,它会搜索其商店以找到合适的页面。如果 Web 服务器能够定位页面,它会打包成包含在其中的 HTML(使用某种传输层协议),将这些包寻址到浏览器(使用 HTTP),然后通过网络将它们传回。
如果 Web 服务器无法找到请求的页面,它会发送一个包含错误消息的页面(即错误 404 – 未找到页面),然后打包并将该页面分派到浏览器。服务器由 Web 浏览器接收到的此消息称为 HTTP 响应。

Web 浏览器和 Web 服务器之间的主要区别是:

Web Browser Web Server
Web Browser is an Application program that displays a World wide web document. It usually uses the internet service to access the document. Web server is a program or the computer that provide services to other programs called client.
The Web browser requests the server for the web documents and services. The Web server accepts, approve and respond to the request made by the web browser for a web document or services.
The web browser act as an interface between the server and the client and displays a web document to the client. The web server is a software or a system which maintain the web applications, generate response and accept clients data.
The web browser sends an HTTP request and gets an HTTP response. The web server gets HTTP requests and send HTTP responses.
Doesn’t exist any processing model for the web browser. There exist three types of processing models for web server i.e Process-based, Thread based and Hybrid.
Web browser stores the cookies for different websites. Web servers provide an area to store and organize the pages of the website.
The web browser is installed on the client computer. The web server can be a remote machine placed at the other side of your network or even on the other end of the globe, or it is your very own personal computer at home.