Slide Web thế hệ mới - Chapter 12 http basic examples
正在生成预览...
Slide giảng dạy về HTTP cơ bản với hai ví dụ minh họa quy trình request-response giữa trình duyệt và máy chủ web, bao gồm các phương thức GET và POST. Tài liệu trình bày chi tiết các bước xử lý HTTP request, HTTP response headers, và cách truyền dữ liệu biểu mẫu.
描述
HTTP EXAMPLE 1 1. User makes request 2. Browser sends HTTP request to server GET /comp1274/randyc/lab10done/enter_country.htm HTTP/1.1 Accept: */* Accept-Language: en-us,en-ca;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) Host: csweb2.mtroyal.ca Connection: Keep-Alive http://en.wikipedia.org/wiki/HTTP_persistent_connection Sử dụng cùng một TCP connection cho nhiều HTTP request HTTP Request Browser Web Server 3. Server receives and processes the HTTP request HTTP Request Browser Web Server Retrieve Requested file 4. Server sends HTTP response back HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Thu, 30 Mar 2006 19:50:54 GMT Server Content-Type: text/html Accept-Ranges: bytes Last-Modified: Fri, 24 Mar 2006 17:50:50 GMT HTTP Response Content-Length: 209 Browser <HTML><HEAD><TITLE>Enter A Country</TITLE></HEAD> <BODY> <FORM METHOD=POST ACTION=form_filter.asp> Enter Country Search: <INPUT TYPE=TEXT NAME=Search><P> <INPUT TYPE=SUBMIT> </FORM> </BODY></HTML> 5. Browser displays response 6. User submits data 7. Browser sends HTTP request to server POST /comp1274/randyc/lab10done/form_filter.asp HTTP/1.1 Accept: */* Referer: http://csweb2.mtroyal.ca/comp1274/randyc/lab10done/enter_country.htm Accept-Language: en-us,en-ca;q=0.5 Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) Host: csweb2.mtroyal.ca Content-Length: 13 Connection: Keep-Alive Cache-Control: no-cache Search=Canada User entered form data goes here in the http request header as a name=value pair Digression: What if GET rather than POST? <FORM METHOD=GET ACTION=form_filter.asp> Then the user entered form data is added to the requested URL GET /comp1274/randyc/lab10done/form_filter.asp?Search=Canada HTTP/1.1 Ve
AI 摘要
- 文档名称
- Slide Web thế hệ mới - Chapter 12 http basic examples
- 学校 / 课程
- Đại học Bách khoa Hà Nội · Web thế hệ mới
- 内容
- Tài liệu giải thích quy trình hoạt động của HTTP qua hai ví dụ minh họa, cho thấy cách trình duyệt gửi yêu cầu và máy chủ phản hồi, bao gồm cả việc xử lý dữ liệu form bằng phương thức GET và POST.
- 目录
- HTTP EXAMPLE 1
- HTTP EXAMPLE 2
- 页数
- 28 页
- 上传者
- lienhejb
常见问题
此文档免费吗?
是的。“Slide Web thế hệ mới - Chapter 12 http basic examples”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 28 页,适用于课程 Web thế hệ mới。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
Slide Web thế hệ mới - Chapter 12 http basic examples
正在生成预览...
HTTP EXAMPLE 1 1. User makes request 2. Browser sends HTTP request to server GET /comp1274/randyc/lab10done/enter_country.htm HTTP/1.1 Accept: */* Accept-Language: en-us,en-ca;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) Host: csweb2.mtroyal.ca Connection: Keep-Alive http://en.wikipedia.org/wiki/HTTP_persistent_connection Sử dụng cùng một TCP connection cho nhiều HTTP request HTTP Request Browser Web Server 3. Server receives and processes the HTTP request HTTP Request Browser Web Server Retrieve Requested file 4. Server sends HTTP response back HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Thu, 30 Mar 2006 19:50:54 GMT Server Content-Type: text/html Accept-Ranges: bytes Last-Modified: Fri, 24 Mar 2006 17:50:50 GMT HTTP Response Content-Length: 209 Browser <HTML><HEAD><TITLE>Enter A Country</TITLE></HEAD> <BODY> <FORM METHOD=POST ACTION=form_filter.asp> Enter Country Search: <INPUT TYPE=TEXT NAME=Search><P> <INPUT TYPE=SUBMIT> </FORM> </BODY></HTML> 5. Browser displays response 6. User submits data 7. Browser sends HTTP request to server POST /comp1274/randyc/lab10done/form_filter.asp HTTP/1.1 Accept: */* Referer: http://csweb2.mtroyal.ca/comp1274/randyc/lab10done/enter_country.htm Accept-Language: en-us,en-ca;q=0.5 Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) Host: csweb2.mtroyal.ca Content-Length: 13 Connection: Keep-Alive Cache-Control: no-cache Search=Canada User entered form data goes here in the http request header as a name=value pair Digression: What if GET rather than POST? <FORM METHOD=GET ACTION=form_filter.asp> Then the user entered form data is added to the requested URL GET /comp1274/randyc/lab10done/form_filter.asp?Search=Canada HTTP/1.1 Ve
阅读全文
- 文档名称
- Slide Web thế hệ mới - Chapter 12 http basic examples
- 学校 / 课程
- Đại học Bách khoa Hà Nội · Web thế hệ mới
- 内容
- Tài liệu giải thích quy trình hoạt động của HTTP qua hai ví dụ minh họa, cho thấy cách trình duyệt gửi yêu cầu và máy chủ phản hồi, bao gồm cả việc xử lý dữ liệu form bằng phương thức GET và POST.
- 目录
- HTTP EXAMPLE 1
- HTTP EXAMPLE 2
- 页数
- 28 页
- 上传者
- lienhejb
评论 (0)
暂无评论。快来抢沙发吧!
K5 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K2 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K3 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K4 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K1 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
评论 (0)
暂无评论。快来抢沙发吧!