1 / 9

信息安全导论

信息安全导论. SHTTP实验说明 黄 俊 iron.junh@gmail .com. Simplified HTTP. 实现一个简化版的HTTP协议,称之为SHTTP 实现两个功能GET和POST: GET用于向服务器端请求文档(下载) POST用于向服务器文档中追加内容(上传). 具体要求. GET 文档存在:返回HTTP/1.0 200 OK 和所请求的文档 不存在:如果服务器端不存在所请求的文档,也要给予相应的提示,如HTTP/1.0 404 NOT FOUND POST

fifi
Download Presentation

信息安全导论

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 信息安全导论 SHTTP实验说明 黄 俊 iron.junh@gmail.com

  2. Simplified HTTP • 实现一个简化版的HTTP协议,称之为SHTTP • 实现两个功能GET和POST: • GET用于向服务器端请求文档(下载) • POST用于向服务器文档中追加内容(上传)

  3. 具体要求 • GET • 文档存在:返回HTTP/1.0 200 OK 和所请求的文档 • 不存在:如果服务器端不存在所请求的文档,也要给予相应的提示,如HTTP/1.0 404 NOT FOUND • POST • 存在:用于向服务器端指定的文件末尾追加相关信息,并返回成功的提示信息,如HTTP/1.0 200 OK • 不存在:如果指定文件不存在也须给予相应提示,如HTTP/1.0 404 NOT FOUND

  4. 协议格式 • GET和POST方法的具体格式可以参照HTTP协议规范(RFC2616)或者计算机网络相关教程(谢希仁 第五版),也可以自行设计

  5. 示例

  6. 参考资料

  7. 实验环境 • http://www.cis.syr.edu/~wedu/seed/lab_env.html • http://phoenix.goucher.edu/~kelliher/cs43/mar19.html

  8. 提交日期 • 2013-3-28

More Related