• Without tailing slash

request header

GET /snippets HTTP/1.1
User-Agent: Fiddler
Host: 192.168.128.132

response header

HTTP/1.1 301 MOVED PERMANENTLY
Server: nginx/1.6.2
Date: Sat, 12 Sep 2015 08:05:41 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Location: http://192.168.128.132/snippets/
  • With a tailing slash

request header

GET /snippets/ HTTP/1.1
User-Agent: Fiddler
Host: 192.168.128.132

response header

HTTP/1.1 200 OK
Server: nginx/1.6.2
Date: Sat, 12 Sep 2015 08:18:15 GMT
Content-Type: applicaiton/json
Transfer-Encoding: chunked
Connection: keep-alive
X-Frame-Options: SAMEORIGIN

14.30 Location>
The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Note: The Content-Location header field (section 14.14) differs
from Location in that the Content-Location identifies the original
location of the entity enclosed in the request. It is therefore
possible for a response to contain header fields for both Location
and Content-Location. Also see section 13.10 for cache
requirements of some methods.

最新文章

  1. 高可用thrift客户池的实现详解
  2. Android中libs目录下armeabi和armeabi-v7a的区别
  3. canvas之特丑时钟
  4. HDU-5806 NanoApe Loves Sequence Ⅱ(two-pointer或二分)
  5. Unity3D之Mecanim动画系统学习笔记(四):Animation State
  6. sql 添加约束
  7. FineUIMvc
  8. mac上修改host
  9. box-sizing的用法(笔记)
  10. mysql5.7 参数记录 (持续更新)
  11. Java - LinkedList源码分析
  12. POJ-1459 Power Network(最大流)
  13. CAS (13) —— CAS 使用Maven Profile支持多环境编译
  14. ie下 iframe在页面中显示白色背景 如何去掉的问题
  15. [leetcode]Reorder List @ Python
  16. Qt 资料大全
  17. Qt语言家(Qt Linguist)更新翻译报错-Qt5.9-MinGW
  18. java线程不安全类与写法
  19. Oracle 索引(转)
  20. Java 字符串格式化 String.format() 的使用

热门文章

  1. 七个结构模式之组合模式(Composite Pattern)
  2. knockout源码分析之computed(依赖属性)
  3. 网站开发中很实用的 HTML5 & jQuery 插件
  4. [deviceone开发]-QQ分享、微信分享和新浪微博分享
  5. swift学习笔记之-高级运算符
  6. Vue数据绑定隐藏的神坑....
  7. 设置text-overflow文本溢出隐藏时的对齐问题
  8. SharePoint 2013 Error - TypeError: Unable to get property 'replace' of undefined or null reference
  9. IOS中限制TextField中输入的类型以及长度
  10. Servlet基础(三) Servlet的多线程同步问题