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

Use https as HTTP is throwing a 301 redirect to point at the https version #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattfawcett
Copy link

Attempts to access the API over HTTP are returning a 301 redirect to the secure HTTPS version.

curl -d "" -i http://api.foursquare.com/oauth/request_token
HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Date: Wed, 06 Apr 2011 12:56:37 GMT
Location: https://api.foursquare.com/oauth/request_token
Server: nginx/0.8.52
Content-Length: 185
Connection: keep-alive

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/0.8.52</center>
</body>
</html>

This triggers an Exception in the library. This pull request updates the URLS to use the HTTPS version.

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

Successfully merging this pull request may close these issues.

1 participant