6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HTTPステータスをテストする方法

Last updated at Posted at 2018-04-07

任意のHTTPステータスのテストをするときに便利なサイトを見つけたので備忘録とリンクとして残しておきます。便利すぎておしっこ出そう。

httpus - https://httpstat.us

ASP.NETを使ってるのが渋い。

$ curl -i  httpstat.us/200
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 6
Content-Type: text/plain; charset=utf-8
Server: Microsoft-IIS/10.0
X-AspNetMvc-Version: 5.1
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=89d63535b73ac702aaebfff48d7c5b55c5a76b46550f31ebb8421b9d6ccfe162;Path=/;HttpOnly;Domain=httpstat.us
Date: Sat, 07 Apr 2018 15:27:46 GMT

200 OK
$ curl -i  httpstat.us/301
HTTP/1.1 301 Moved Permanently
Cache-Control: private
Content-Length: 21
Content-Type: text/plain; charset=utf-8
Location: https://httpstat.us
Server: Microsoft-IIS/10.0
X-AspNetMvc-Version: 5.1
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=89d63535b73ac702aaebfff48d7c5b55c5a76b46550f31ebb8421b9d6ccfe162;Path=/;HttpOnly;Domain=httpstat.us
Date: Sat, 07 Apr 2018 15:22:08 GMT

301 Moved Permanently
6
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?