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

Omitting "www" in non-GET request results in a 301 moved response #18

Closed
johtso opened this issue Dec 6, 2011 · 3 comments
Closed

Omitting "www" in non-GET request results in a 301 moved response #18

johtso opened this issue Dec 6, 2011 · 3 comments

Comments

@johtso
Copy link
Contributor

johtso commented Dec 6, 2011

When you omit the "www" in the url when doing a non-GET request, httpbin responds with a 301 moved status.

>> print requests.post('http://httpbin.org/post').status_code
>> 301

>> print requests.post('http://www.httpbin.org/post').status_code
>> 200
@kennethreitz
Copy link
Contributor

Unfortunately, this is a permanent change.

@kennethreitz
Copy link
Contributor

A bit of short-sightedness on my end. I'll be adding real SSL soon (vs the herokuapp domain), and this will facilitate that.

@kennethreitz
Copy link
Contributor

Actually, I got this fixed!

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

2 participants