Created
December 4, 2012 20:42
-
-
Save dafyddcrosby/4208475 to your computer and use it in GitHub Desktop.
Sending HTTP to HTTPS port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl https://api.github.com | |
{ | |
"user_repositories_url": "/users/{user}/repos{?type,page,per_page,sort}", | |
"hub_url": "/hub", | |
"starred_gists_url": "/gists/starred", | |
"starred_url": "/user/starred{/owner}{/repo}", | |
"current_user_url": "/user", | |
"keys_url": "/user/keys", | |
"user_organizations_url": "/user/orgs", | |
"team_url": "/teams", | |
"organization_repositories_url": "/orgs/{org}/repos/{?type,page,per_page,sort}", | |
"authorizations_url": "/authorizations", | |
"user_url": "/users/{user}", | |
"repository_url": "/repos/{owner}/{repo}", | |
"public_gists_url": "/gists/public", | |
"notifications_url": "/notifications", | |
"issue_search_url": "/legacy/issues/search/{owner}/{repo}/{state}/{keyword}", | |
"user_search_url": "/legacy/user/search/{keyword}", | |
"emails_url": "/user/emails", | |
"rate_limit_url": "/rate_limit", | |
"organization_url": "/orgs/{org}", | |
"issues_url": "/issues", | |
"gists_url": "/gists{/gist_id}", | |
"emojis_url": "/emojis", | |
"repository_search_url": "/legacy/repos/search/{keyword}{?language,start_page}", | |
"events_url": "/events", | |
"current_user_repositories_url": "/user/repos{?type,page,per_page,sort}", | |
"following_url": "/user/following{/target}" | |
} | |
$ curl http://api.github.com:443 | |
<html> | |
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head> | |
<body bgcolor="white"> | |
<center><h1>400 Bad Request</h1></center> | |
<center>The plain HTTP request was sent to HTTPS port</center> | |
<hr><center>nginx</center> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment