René's URL Explorer Experiment


Title: HTTP20Adapter sends extra headers ?? · Issue #416 · python-hyper/hyper · GitHub

Open Graph Title: HTTP20Adapter sends extra headers ?? · Issue #416 · python-hyper/hyper

X Title: HTTP20Adapter sends extra headers ?? · Issue #416 · python-hyper/hyper

Description: import hashlib import requests import json from tls_version import MyAdapter import collections from userdata import UserData import time from random import randrange from hyper.contrib import HTTP20Adapter headers2 = [('Upgrade-Insecure...

Open Graph Description: import hashlib import requests import json from tls_version import MyAdapter import collections from userdata import UserData import time from random import randrange from hyper.contrib import HTTP...

X Description: import hashlib import requests import json from tls_version import MyAdapter import collections from userdata import UserData import time from random import randrange from hyper.contrib import HTTP...

Opengraph URL: https://github.com/python-hyper/hyper/issues/416

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HTTP20Adapter sends extra headers ??","articleBody":"```\r\n\r\nimport hashlib\r\nimport requests\r\nimport json\r\nfrom tls_version import MyAdapter\r\nimport collections\r\nfrom userdata import  UserData\r\nimport time\r\nfrom random import randrange\r\nfrom hyper.contrib import HTTP20Adapter\r\n\r\n\r\nheaders2 = [('Upgrade-Insecure-Requests', '1'),\r\n        ('User-Agent', 'Mozilla/5.0 (Linux; Android 5.1.1; google Pixel 2 Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36'),\r\n        ('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        ('Accept-Encoding', 'gzip, deflate'),\r\n        ('Accept-Language', 'es-ES,es;q=0.9,en-US;q=0.8,en;q=0.7'),\r\n\r\n        ]\r\nclass post_calls():\r\n        def start(self,headers_pass,body_pass,params,url,method):\r\n            proxies = {\r\n                'http': ip,\r\n                'https': ip\r\n            }\r\n            body = str(body_pass)\r\n\r\n\r\n            #send the POST request\r\n            session = requests.session()\r\n            session.mount('https://', MyAdapter())\r\n            session.headers =  collections.OrderedDict(headers_pass)\r\n            if method == 'get':\r\n                q = 'https://' + server + '.' + host\r\n                q = q.replace('.www.', '.')\r\n                session.mount('https://', HTTP20Adapter())\r\n                print('q='+q)\r\n                response = session.get(url, proxies=proxies, params=params, verify=charlesproxy)\r\n\r\n\r\n\r\n\r\n\r\ndef login_world2(sid): \r\n\r\n    a = post_calls()\r\n    q ='https://'+server+'.'+ host+'/login.php?mobile&sid='+sid+'&2'\r\n    q = q.replace('.www.','.')\r\n    params = {}\r\n    url = q\r\n    body = '0'\r\n    login = a.start(headers2,body,params,url,'get')\r\n    return login\r\n\r\nif __name__ == \"__main__\":\r\n    login_get = login_world(sid)\r\n    print(login_get)\r\n\r\n\r\n```\r\n\r\nand it sends those headers(im sniffing my code  http/s traffic with charlesproxy)\r\n\r\n```\r\n:method: GET\r\n:scheme: https\r\n:authority: server.url.com\r\n:path: /login.php?mobile&sid=577f0967545d6acec94716d265dd4867fa4db4a446326ecde7486a97feede14702f4911438f4a4cd097677f0dd962786ef14b3f16f1184ee63a506155d522f53&2\r\nupgrade-insecure-requests: 1\r\nuser-agent: Mozilla/5.0 (Linux; Android 5.1.1; google Pixel 2 Build/LMY47I; wv) AppleWebKit/537.36 (KHTML\r\nuser-agent: like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36\r\naccept: text/html\r\naccept: application/xhtml+xml\r\naccept: application/xml;q=0.9\r\naccept: image/webp\r\naccept: image/apng\r\naccept: */*;q=0.8\r\naccept: application/signed-exchange;v=b3\r\naccept-encoding: gzip\r\naccept-encoding: deflate\r\naccept-language: es-ES\r\naccept-language: es;q=0.9\r\naccept-language: en-US;q=0.8\r\naccept-language: en;q=0.7\r\n```\r\n\r\n\r\n\r\ni need to send them with orderectdict like these(with only ) requests goes good problem is thath server is http 2.0 so i need pseudo headers so i need hyper \r\n```\r\n:method: GET\r\n:authority: server.url.com\r\n:scheme: https\r\n:path: /login.php?mobile&sid=2ea530a62cb63af6c14be116b7df86ad85cd77c9a11aa3c881b3a460e6c14fbd1fd8b79bd66c9782073705cdff25e890e65b5aeb852fde24c2d54a6e4ee49890&2\r\nupgrade-insecure-requests: 1\r\nuser-agent: Mozilla/5.0 (Linux; Android 5.1.1; google Pixel 2 Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36\r\naccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\r\naccept-encoding: gzip, deflate\r\naccept-language: es-ES,es;q=0.9,en-US;q=0.8,en;q=0.7\r\n```\r\n","author":{"url":"https://github.com/qwerty32123","@type":"Person","name":"qwerty32123"},"datePublished":"2019-07-27T01:54:16Z","url":"https://github.com/python-hyper/hyper/issues/416"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4dfe3a2b-53fd-8c60-a983-fc5d17b38329
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA66C:2E02E3:A4E2D:E42D9:6AFD9A12
html-safe-nonce1e156fcafe4b85bfa6bd9b95a4bd8bd1e1e4bd40e914ef65234b2fe19d4e0471
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjZDOjJFMDJFMzpBNEUyRDpFNDJEOTo2QUZEOUExMiIsInZpc2l0b3JfaWQiOiI1MTI4MjIxNzYxMDE5NDE5MTU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb44a0ac8337d57378a70d97d37e76f76180d7659f774bc767856ced2d798168e
hovercard-subject-tagissue:473586687
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyper/416/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d881a5ce7cfcc9b8a23228ce91a458170e8028c9e00ac5829878a3d4cf63d73d/python-hyper/hyper/issues/416
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d881a5ce7cfcc9b8a23228ce91a458170e8028c9e00ac5829878a3d4cf63d73d/python-hyper/hyper/issues/416
og:image:altimport hashlib import requests import json from tls_version import MyAdapter import collections from userdata import UserData import time from random import randrange from hyper.contrib import HTTP...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameqwerty32123
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
go-importgithub.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git
octolytics-dimension-user_id13035907
octolytics-dimension-user_loginpython-hyper
octolytics-dimension-repository_id16165969
octolytics-dimension-repository_nwopython-hyper/hyper
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16165969
octolytics-dimension-repository_network_root_nwopython-hyper/hyper
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python-hyper/hyper/issues/416#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fhyper%2Fissues%2F416
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fhyper%2Fissues%2F416
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-hyper%2Fhyper
Reloadhttps://github.com/python-hyper/hyper/issues/416
Reloadhttps://github.com/python-hyper/hyper/issues/416
Reloadhttps://github.com/python-hyper/hyper/issues/416
python-hyperhttps://github.com/python-hyper
hyperhttps://github.com/python-hyper/hyper
Codehttps://github.com/python-hyper/hyper
Issues78 (78)https://github.com/python-hyper/hyper/issues
Pull requests22 (22)https://github.com/python-hyper/hyper/pulls
Actionshttps://github.com/python-hyper/hyper/actions
Security and qualityhttps://github.com/python-hyper/hyper/security
Insightshttps://github.com/python-hyper/hyper/insights
https://github.com/python-hyper/hyper
HTTP20Adapter sends extra headers ??https://github.com/python-hyper/hyper/issues/416#top
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Jul 27, 2019https://github.com/python-hyper/hyper/issues/416#issue-473586687
https://github.com/VeNoMouS
VeNoMouShttps://github.com/VeNoMouS
on Jul 28, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-515752330
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Jul 29, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-516044403
https://github.com/VeNoMouS
VeNoMouShttps://github.com/VeNoMouS
on Jul 29, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-516188108
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Aug 5, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-518392714
@VeNoMouShttps://github.com/VeNoMouS
https://github.com/VeNoMouS
VeNoMouShttps://github.com/VeNoMouS
on Aug 5, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-518405684
https://github.com/zb14
zb14https://github.com/zb14
on Aug 13, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-520686326
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Aug 13, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-520932415
https://github.com/zb14
zb14https://github.com/zb14
on Aug 14, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521236644
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
on Aug 14, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521264910
https://github.com/VeNoMouS
VeNoMouShttps://github.com/VeNoMouS
on Aug 15, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521482096
@sethmlarsonhttps://github.com/sethmlarson
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
on Aug 15, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521489757
@tomchristiehttps://github.com/tomchristie
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Aug 15, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521824058
@gnubiehttps://github.com/gnubie
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
on Aug 15, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521826871
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Aug 15, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521835892
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
on Aug 15, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521837204
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Aug 16, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-521838650
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
on Sep 23, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-534122385
https://github.com/qwerty32123
qwerty32123https://github.com/qwerty32123
on Sep 23, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-534236140
https://github.com/sethmlarson
sethmlarsonhttps://github.com/sethmlarson
on Sep 23, 2019https://github.com/python-hyper/hyper/issues/416#issuecomment-534242109
https://encode.io/httpx/advancedhttps://encode.io/httpx/advanced
https://github.com/txtsd
txtsdhttps://github.com/txtsd
on May 21, 2020https://github.com/python-hyper/hyper/issues/416#issuecomment-632105510
hyper/hyper/common/headers.pyhttps://github.com/python-hyper/hyper/blob/18b629b8487169870235fe13387e2ae03c178b9f/hyper/common/headers.py#L252
18b629bhttps://github.com/python-hyper/hyper/commit/18b629b8487169870235fe13387e2ae03c178b9f
Sign up for freehttps://github.com/signup?return_to=https://github.com/python-hyper/hyper/issues/416
Sign in to commenthttps://github.com/login?return_to=https://github.com/python-hyper/hyper/issues/416
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.