Title: Hyper doesn't print out any cookies. · Issue #409 · python-hyper/hyper · GitHub
Open Graph Title: Hyper doesn't print out any cookies. · Issue #409 · python-hyper/hyper
X Title: Hyper doesn't print out any cookies. · Issue #409 · python-hyper/hyper
Description: Hello guys! I am using the latest development version of Hyper. I have been trying for hours to be able to print out cookies from using Hyper adapt. I have created a code which looks like: s = requests.session() s.mount('https://', HTTP2...
Open Graph Description: Hello guys! I am using the latest development version of Hyper. I have been trying for hours to be able to print out cookies from using Hyper adapt. I have created a code which looks like: s = requ...
X Description: Hello guys! I am using the latest development version of Hyper. I have been trying for hours to be able to print out cookies from using Hyper adapt. I have created a code which looks like: s = requ...
Opengraph URL: https://github.com/python-hyper/hyper/issues/409
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hyper doesn't print out any cookies.","articleBody":"Hello guys!\r\nI am using the latest development version of Hyper. I have been trying for hours to be able to print out cookies from using Hyper adapt. I have created a code which looks like:\r\n\r\n```\r\ns = requests.session()\r\ns.mount('https://', HTTP20Adapter()) #As soon as I comment this row (Meaning that this code will not be in use then it works with getting cookies) however as soon as you use this function then you will not receive any cookies\r\ns.headers = OrderedDict()\r\n\r\n\r\n\r\nurl = 'https://github.com/'\r\n\r\nheaders = {\r\n\t'upgrade-insecure-requests': '1',\r\n\t'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36',\r\n\t'accept': \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\",\r\n\t'accept-language': 'sv-SE,sv;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6'\r\n}\r\n\r\nr = s.get(url, headers=headers, timeout=5, verify=False)\r\n\r\nprint(r.cookies)\r\n```\r\n\r\nWhich gives me a output of: \r\n\r\n**\u003cRequestsCookieJar[]>**\r\n\r\nHowever if I change \r\n\r\n**r = s.get(url,** to **r = requests.get(url,** then I do get output of\r\n\r\n**\u003cRequestsCookieJar[\u003cCookie _octo=GH1.1.1584727450.1556359694 for .github.com/>, \u003cCookie logged_in=no for .github.com/>, \u003cCookie _gh_sess=UiswQjZhNVNtbXBaYUFrcGxRNzBMVFNqWndITnBMREJ6RjFVNm0zMllNaHlpbG5IT0pzVkxNcUlud3ZiVWplbXIyazBsR1QyRk1yRW1lK2xQdjdLS2VoMHBCb0haNjdhUUb990550d03db894b5a77d7e471 for github.com/>, \u003cCookie has_recent_activity=1 for github.com/>]>**\r\n\r\nSo the question is, why does it happen like this?\r\n","author":{"url":"https://github.com/BarryThrill","@type":"Person","name":"BarryThrill"},"datePublished":"2019-04-27T10:08:49Z","url":"https://github.com/python-hyper/hyper/issues/409"}
| 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:f3270a66-e01d-2f29-5766-3e6c9f0bd935 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2AA:1EDE7C:ABA76:EBC15:6AFD9A02 |
| html-safe-nonce | b29ff1e98918945a950d75ced5998bd6c72112e884fd65ae20d1b96996ed6eb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkFBOjFFREU3QzpBQkE3NjpFQkMxNTo2QUZEOUEwMiIsInZpc2l0b3JfaWQiOiI1MDIxMzgwOTgzNDkyODExMjY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db388136ff9b4f49099076f9ef65b3a4a951a11dd53b01180e0b962475757957 |
| hovercard-subject-tag | issue:437928202 |
| 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/409/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c47f852f03272d3dd85c2594ffde93dbd76322a93220ede3d2b4d641aac3a7cb/python-hyper/hyper/issues/409 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c47f852f03272d3dd85c2594ffde93dbd76322a93220ede3d2b4d641aac3a7cb/python-hyper/hyper/issues/409 |
| og:image:alt | Hello guys! I am using the latest development version of Hyper. I have been trying for hours to be able to print out cookies from using Hyper adapt. I have created a code which looks like: s = requ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BarryThrill |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width