如何在RequestBin

时间:2017-05-23 10:00:56

标签: http request

我想使用RequestBin工具进行HTTP(非HTTPS)调试。但是,它似乎并不支持它,例如:

$ curl http://requestb.in/1eqnllm1 -vvvv
* Hostname was NOT found in DNS cache
*   Trying 104.31.87.204...
* Connected to requestb.in (104.31.87.204) port 80 (#0)
> GET /1eqnllm1 HTTP/1.1
> User-Agent: curl/7.38.0
> Host: requestb.in
> Accept: */*
> 
< HTTP/1.1 301 Moved Permanently
< Date: Tue, 23 May 2017 09:56:28 GMT
< Transfer-Encoding: chunked
< Connection: keep-alive
< Set-Cookie: __cfduid=ddf08bf899d8bb92e06630f02f37f0f471495533388; expires=Wed, 23-May-18 09:56:28 GMT; path=/; domain=.requestb.in; HttpOnly
< Cache-Control: max-age=3600
< Expires: Tue, 23 May 2017 10:56:28 GMT
< Location: https://requestb.in/1eqnllm1
< X-Content-Type-Options: nosniff
* Server cloudflare-nginx is not blacklisted
< Server: cloudflare-nginx
< CF-RAY: 3637253d814f0de1-MAD
< 
* Connection #0 to host requestb.in left intact

我希望获得200 OK而不是302 Moved Permanently

有没有办法配置RequestBin以这种方式工作,好吗?我已经浏览了网页,但我找不到任何东西......

欢迎使用可以使用HTTP的RequestBin替代方案。

3 个答案:

答案 0 :(得分:4)

我也打了这个。在twitter上说他们只转移到了https。 https://twitter.com/johnsheehan/status/865646082654584832

试试这个 - &gt; http://putsreq.com/

答案 1 :(得分:1)

您可以使用https://www.mocky.io进行http响应,因为putsreq.com不再支持http。

答案 2 :(得分:1)

您可以尝试http://requestbin.net/

它类似于requestb.in并支持http。