Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't redirect http to https #440

Closed
eserte opened this issue Apr 28, 2018 · 6 comments
Closed

Don't redirect http to https #440

eserte opened this issue Apr 28, 2018 · 6 comments

Comments

@eserte
Copy link

eserte commented Apr 28, 2018

Currently httpbin does not work as "documented". For example, one of the examples does not return 418 anymore, but 301:

$ curl -I http://httpbin.org/status/418
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 28 Apr 2018 10:04:32 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://httpbin.org:443/status/418

This is breaking the test suite of https://github.com/libwww-perl/Net-HTTP (@oalders FYI).

@kennethreitz
Copy link
Contributor

The service is now https only.

@kennethreitz
Copy link
Contributor

a test suite should be running httpbin locally, not using httpbin's production service.

@sigmavirus24
Copy link
Contributor

There are also docker containers if that makes your life simpler for running it locally.

@kennethreitz
Copy link
Contributor

Should be back to normal now.

@oalders
Copy link

oalders commented Apr 30, 2018

Thanks @kennethreitz and @eserte. I guess we should rethink how we're testing this in Net::HTTP. Getting the tests working again in the meantime is very helpful, though. We can close this issue now.

@ghost
Copy link

ghost commented Jun 20, 2019

As an alternative this site offers both protocols:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants