• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

Tomcat服务器处理一个http请求。

假设客户的请求是:3358 localhost 33608080/wsota/wsota _ index.jsp。

1)请求被发送到本地端口8080,并由在那里侦听的Coyote HTTP/1.1连接器获得。

2)连接器向其所在服务的引擎发出请求,并等待引擎的响应。

3)引擎获得请求localhost/wsota/wsota _ index.jsp,并匹配它拥有的所有虚拟主机。

4)引擎匹配名为localHost的主机(即使不匹配,也把请求交给主机处理,因为主机被定义为引擎的默认主机)

5) localhost Host获取请求/wsota/wsota_index.jsp并匹配其拥有的所有上下文。

6)主机将上下文与路径/wsota匹配(如果不匹配,请求将被发送到路径名为“”的上下文进行处理)

7)获取path='/wsota '的上下文请求/wsota_index.jsp,并在其映射表中查找相应的servlet

8)上下文匹配URL模式为*的servlet。jsp,对应于JspServlet类

9)构造HttpServletRequest对象和HttpServletResponse对象,调用JspServlet的doGet或doPost方法作为参数。

10)10)上下文在执行后将HttpServletResponse对象返回给主机。

1)主机向引擎返回HttpServletResponse对象。

12)引擎向连接器返回HttpServletResponse对象。

13)连接器将HttpServletResponse对象返回给客户浏览器。

Link to comment
Share on other sites