Title: How to https? · Issue #408 · python-hyper/hyper · GitHub
Open Graph Title: How to https? · Issue #408 · python-hyper/hyper
X Title: How to https? · Issue #408 · python-hyper/hyper
Description: Consider from hyper import HTTPConnection c = HTTPConnection('www.peterbe.com') c.request('GET', '/') resp = c.get_response() print(resp.status) print(resp.headers['location']) Output becomes: 301 [b'https://www.peterbe.com/'] That's lik...
Open Graph Description: Consider from hyper import HTTPConnection c = HTTPConnection('www.peterbe.com') c.request('GET', '/') resp = c.get_response() print(resp.status) print(resp.headers['location']) Output becomes: 301 ...
X Description: Consider from hyper import HTTPConnection c = HTTPConnection('www.peterbe.com') c.request('GET', '/') resp = c.get_response() print(resp.status) print(resp.headers['loca...
Opengraph URL: https://github.com/python-hyper/hyper/issues/408
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to https?","articleBody":"Consider\r\n```python\r\nfrom hyper import HTTPConnection\r\nc = HTTPConnection('www.peterbe.com')\r\nc.request('GET', '/')\r\nresp = c.get_response()\r\nprint(resp.status)\r\nprint(resp.headers['location'])\r\n```\r\nOutput becomes:\r\n```\r\n301\r\n[b'https://www.peterbe.com/']\r\n```\r\n\r\nThat's like doing `curl -v http://www.peterbe.com` which will also respond with:\r\n```\r\n\u003c HTTP/1.1 301 Moved Permanently\r\n\u003c Server: cloudflare-nginx\r\n\u003c Date: Wed, 24 Apr 2019 13:32:25 GMT\r\n\u003c Content-Type: text/html\r\n\u003c Content-Length: 162\r\n\u003c Connection: keep-alive\r\n\u003c Location: https://www.peterbe.com/\r\n```\r\n\r\nI think the problem is that `http://www.peterbecom` is HTTP/1.1 whereas `https://www.peterbe.com` is HTTP/2. ...if that matters. ","author":{"url":"https://github.com/peterbe","@type":"Person","name":"peterbe"},"datePublished":"2019-04-24T13:33:44Z","url":"https://github.com/python-hyper/hyper/issues/408"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b315899c-cb8f-9e2f-4844-45d4a0e0e450 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7BC:3D5D88:B439A:F4EC4:6AFD9A0F |
| html-safe-nonce | b7adf0803a4858e8e014f06dc624b16ce03bbb7579d8095f24cbd5afc2eb0a23 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0JDOjNENUQ4ODpCNDM5QTpGNEVDNDo2QUZEOUEwRiIsInZpc2l0b3JfaWQiOiI2MTQzOTMwODU4Nzk0MjI4MjM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba9f119fa45c76487b29dbb184f770ddda58ee7af45050e4e4b19f3daef2c376 |
| hovercard-subject-tag | issue:436700278 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyper/408/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1ef89c2992190381aa8ce8b91ced25112458f8428d434fa3c80fb14e8e1db75/python-hyper/hyper/issues/408 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1ef89c2992190381aa8ce8b91ced25112458f8428d434fa3c80fb14e8e1db75/python-hyper/hyper/issues/408 |
| og:image:alt | Consider from hyper import HTTPConnection c = HTTPConnection('www.peterbe.com') c.request('GET', '/') resp = c.get_response() print(resp.status) print(resp.headers['location']) Output becomes: 301 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peterbe |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 16165969 |
| octolytics-dimension-repository_nwo | python-hyper/hyper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16165969 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyper |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width