好站: httpbin 適合練習 HTTP Request、Response 的服務

平常開發、測試、練習 HTTP 的送出(Request)、回應(Response), 都需要另外寫程式接收, 這個服務可以接收 與 回應各種需要的請求與回應.

httpbin 適合練習 HTTP Request、Response 的服務

網站可見: httpbin(1): HTTP Client Testing Service

httpbin 提供的服務內容如下(httpbin(1): HTTP Request & Response Service):

  • / This page.
  • /ip Returns Origin IP.
  • /user-agent Returns user-agent.
  • /headers Returns header dict.
  • /get Returns GET data.
  • /post Returns POST data.
  • /put Returns PUT data.
  • /delete Returns DELETE data
  • /gzip Returns gzip-encoded data.
  • /status/:code Returns given HTTP Status code.
  • /response-headers?key=val Returns given response headers.
  • /redirect/:n 302 Redirects n times.
  • /relative-redirect/:n 302 Relative redirects n times.
  • /cookies Returns cookie data.
  • /cookies/set?name=value Sets one or more simple cookies.
  • /basic-auth/:user/:passwd Challenges HTTPBasic Auth.
  • /hidden-basic-auth/:user/:passwd 404'd BasicAuth.
  • /digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth.
  • /stream/:n Streams n–100 lines.
  • /delay/:n Delays responding for n–10 seconds.
  • /html Renders an HTML Page.
  • /robots.txt Returns some robots.txt rules.
  • /deny Denied by robots.txt file.

相關網頁


關於 Tsung

對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.
本篇發表於 My-Favorite-Site 並標籤為 , , , 。將永久鏈結加入書籤。

發表迴響