httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

Is POST and redirection supported?

Open pengyu opened this issue 4 years ago • 1 comments

I POSTed to this URL https://httpbin.org/absolute-redirect/3

But I got this response header. Is POST and redirection supported by httpbin? Thanks.

HTTP/1.1 405 METHOD NOT ALLOWED Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Allow: OPTIONS, GET, HEAD Content-Type: text/html Date: Sat, 09 Nov 2019 20:10:11 GMT Referrer-Policy: no-referrer-when-downgrade Server: nginx X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block Content-Length: 178 Connection: keep-alive

pengyu avatar Nov 09 '19 20:11 pengyu

@pengyu this url support only GET method

  • https://github.com/postmanlabs/httpbin/blob/master/httpbin/core.py#L677
  • https://httpbin.org/#/Redirects

sgaynetdinov avatar Nov 12 '19 10:11 sgaynetdinov