René's URL Explorer Experiment


Title: gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 by handlerbot · Pull Request #8305 · python/cpython · GitHub

Open Graph Title: gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 by handlerbot · Pull Request #8305 · python/cpython

X Title: gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 by handlerbot · Pull Request #8305 · python/cpython

Description: Use protocol HTTP/1.1 when sending HTTP CONNECT tunnelling requests; generate Host: headers if one is not already provided (required by HTTP/1.1), convert IDN domains to punycode in HTTP CONNECT requests. This builds upon and obsoletes #742. cc @berkerpeksag who reviewed that PR. (I have signed the CLA, but it was less than a day ago, so the human review may not yet be completed.) https://bugs.python.org/issue22708 Issue: gh-66897

Open Graph Description: Use protocol HTTP/1.1 when sending HTTP CONNECT tunnelling requests; generate Host: headers if one is not already provided (required by HTTP/1.1), convert IDN domains to punycode in HTTP CONNECT re...

X Description: Use protocol HTTP/1.1 when sending HTTP CONNECT tunnelling requests; generate Host: headers if one is not already provided (required by HTTP/1.1), convert IDN domains to punycode in HTTP CONNECT re...

Opengraph URL: https://github.com/python/cpython/pull/8305

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e95e78f5-f8e6-3b12-01ad-3b5cc8105e4e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC9DE:1EFC6:AEFFE4:F28190:696A880B
html-safe-nonce6147d7d44e33d50a5d475ecc1e648c2a3dd8d65f830e899aa2c971abb73edfa0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOURFOjFFRkM2OkFFRkZFNDpGMjgxOTA6Njk2QTg4MEIiLCJ2aXNpdG9yX2lkIjoiNTAwNzcyOTA5MDYxMzY0MzI3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac85a29e27354a54fe92fc22c95afedf72a031a61c8b7d6ab82f3559c236d0d560
hovercard-subject-tagpull_request:201768651
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/8305/files
twitter:imagehttps://avatars.githubusercontent.com/u/90347?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/90347?s=400&v=4
og:image:altUse protocol HTTP/1.1 when sending HTTP CONNECT tunnelling requests; generate Host: headers if one is not already provided (required by HTTP/1.1), convert IDN domains to punycode in HTTP CONNECT re...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec1dbca8981c5e3d6a69bce2f1d289e732b86241d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/8305/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F8305%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F8305%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/8305/files
Reloadhttps://github.com/python/cpython/pull/8305/files
Reloadhttps://github.com/python/cpython/pull/8305/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/8305/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/8305/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
orsenthilhttps://github.com/orsenthil
python:mainhttps://github.com/python/cpython/tree/main
Conversation 36 https://github.com/python/cpython/pull/8305
Commits 17 https://github.com/python/cpython/pull/8305/commits
Checks 0 https://github.com/python/cpython/pull/8305/checks
Files changed https://github.com/python/cpython/pull/8305/files
Please reload this pagehttps://github.com/python/cpython/pull/8305/files
gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 https://github.com/python/cpython/pull/8305/files#top
Show all changes 17 commits https://github.com/python/cpython/pull/8305/files
9f5ce09 bpo-22708: Upgrade HTTP CONNECT to protocol HTTP/1.1 (GH-NNNN) handlerbot Jul 16, 2018 https://github.com/python/cpython/pull/8305/commits/9f5ce0930ba7488c954b0d9cf018ddc4a37d3109
c3927ed Refactor tests to pass under -bb (fix ByteWarnings); missed some line… handlerbot Jul 16, 2018 https://github.com/python/cpython/pull/8305/commits/c3927ed9929afd67ec25794c68c076aed908d13b
2fe3ade Use consistent 'tunnelling' spelling in Lib/http/client.py handlerbot Jul 20, 2018 https://github.com/python/cpython/pull/8305/commits/2fe3ade45a12570d0ac5d5a8d3fb9064e7a3dfd4
b2f76d7 Lib/test/test_httplib: Remove remnant of obsoleted test. handlerbot Jul 20, 2018 https://github.com/python/cpython/pull/8305/commits/b2f76d729e14048a10269e53bfa2205f014354b2
9990baa Use dict.copy() not copy.copy() handlerbot Jul 24, 2018 https://github.com/python/cpython/pull/8305/commits/9990baa82c6f541a2c5f31216d5ea4db3ea47d30
367b407 fix version changed merwok Oct 7, 2022 https://github.com/python/cpython/pull/8305/commits/367b40758cd139ee68ff9ef4dbfdf6926dca3c0a
f370042 Merge branch 'main' into fix-bpo-22708 handlerbot Oct 8, 2022 https://github.com/python/cpython/pull/8305/commits/f370042ac08868215c8f9c6eaeb52a5d092c2c44
8b55642 Update Lib/http/client.py handlerbot Oct 8, 2022 https://github.com/python/cpython/pull/8305/commits/8b556427c14a48942690fa0f9acf078ad936c414
aa1508e Switch to for/else: syntax, as suggested handlerbot Oct 10, 2022 https://github.com/python/cpython/pull/8305/commits/aa1508ee7c91686fffa587c9c3846d3cdef69fc9
ef8b896 Don't use for: else: handlerbot Oct 25, 2022 https://github.com/python/cpython/pull/8305/commits/ef8b896ff5bf9502da41726afc427832e8b84711
5d2f166 Merge branch 'main' into fix-bpo-22708 handlerbot Oct 25, 2022 https://github.com/python/cpython/pull/8305/commits/5d2f166d1c283c22bd63f4601a63240b56d633d3
87e514c Sure, fine, w/e handlerbot Oct 26, 2022 https://github.com/python/cpython/pull/8305/commits/87e514c390c34da499b89acea08be38fe95fdd1f
d224052 Oops handlerbot Oct 26, 2022 https://github.com/python/cpython/pull/8305/commits/d224052c52819852d1da81b542aa8a3338ee10bf
70ba474 1nm to the left handlerbot Oct 26, 2022 https://github.com/python/cpython/pull/8305/commits/70ba474b00360a5630b5c1f6a912ab4f3f169f6f
0a5db5f Merge branch 'main' into fix-bpo-22708 handlerbot Oct 26, 2022 https://github.com/python/cpython/pull/8305/commits/0a5db5f58293fbf84a2ab009ceda1da160c94289
d3b5726 Merge branch 'main' into fix-bpo-22708 handlerbot Jan 12, 2023 https://github.com/python/cpython/pull/8305/commits/d3b57266dc8b1388e6ee9614eebae01189d5aea2
92c4f20 Merge branch 'main' into fix-bpo-22708 arhadthedev Mar 22, 2023 https://github.com/python/cpython/pull/8305/commits/92c4f205940845df7a9ed654b8178a38e4935e0a
Clear filters https://github.com/python/cpython/pull/8305/files
Please reload this pagehttps://github.com/python/cpython/pull/8305/files
Please reload this pagehttps://github.com/python/cpython/pull/8305/files
http.client.rst https://github.com/python/cpython/pull/8305/files#diff-8b593d59208d92a1f73c3066a46cb0298ba69dfb710f4d91f99071d1b0407698
client.py https://github.com/python/cpython/pull/8305/files#diff-3cf29d90eb758d0fe5ec013bbfda9b0bb60be4f7d899583bd5f490a7a5a5dc5f
test_httplib.py https://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
ACKS https://github.com/python/cpython/pull/8305/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
2018-07-16-14-10-29.bpo-22708.592iRR.rst https://github.com/python/cpython/pull/8305/files#diff-b755efbbd9d045b76c69912db131e612feed5ece01fe28a5ae740344ed02371c
Doc/library/http.client.rsthttps://github.com/python/cpython/pull/8305/files#diff-8b593d59208d92a1f73c3066a46cb0298ba69dfb710f4d91f99071d1b0407698
View file https://github.com/python/cpython/blob/92c4f205940845df7a9ed654b8178a38e4935e0a/Doc/library/http.client.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8305/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8305/files#diff-8b593d59208d92a1f73c3066a46cb0298ba69dfb710f4d91f99071d1b0407698
https://github.com/python/cpython/pull/8305/files#diff-8b593d59208d92a1f73c3066a46cb0298ba69dfb710f4d91f99071d1b0407698
https://github.com/python/cpython/pull/8305/files#diff-8b593d59208d92a1f73c3066a46cb0298ba69dfb710f4d91f99071d1b0407698
Lib/http/client.pyhttps://github.com/python/cpython/pull/8305/files#diff-3cf29d90eb758d0fe5ec013bbfda9b0bb60be4f7d899583bd5f490a7a5a5dc5f
View file https://github.com/python/cpython/blob/92c4f205940845df7a9ed654b8178a38e4935e0a/Lib/http/client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8305/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8305/files#diff-3cf29d90eb758d0fe5ec013bbfda9b0bb60be4f7d899583bd5f490a7a5a5dc5f
https://github.com/python/cpython/pull/8305/files#diff-3cf29d90eb758d0fe5ec013bbfda9b0bb60be4f7d899583bd5f490a7a5a5dc5f
https://github.com/python/cpython/pull/8305/files#diff-3cf29d90eb758d0fe5ec013bbfda9b0bb60be4f7d899583bd5f490a7a5a5dc5f
Lib/test/test_httplib.pyhttps://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
View file https://github.com/python/cpython/blob/92c4f205940845df7a9ed654b8178a38e4935e0a/Lib/test/test_httplib.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8305/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
https://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
https://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
https://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
https://github.com/python/cpython/pull/8305/files#diff-6202bc3817db8ca8da16747c2447a99b5cb9037cc39f05a29f4dd152d155dac2
Misc/ACKShttps://github.com/python/cpython/pull/8305/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
View file https://github.com/python/cpython/blob/92c4f205940845df7a9ed654b8178a38e4935e0a/Misc/ACKS
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8305/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8305/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
https://github.com/python/cpython/pull/8305/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0
Misc/NEWS.d/next/Library/2018-07-16-14-10-29.bpo-22708.592iRR.rsthttps://github.com/python/cpython/pull/8305/files#diff-b755efbbd9d045b76c69912db131e612feed5ece01fe28a5ae740344ed02371c
View file https://github.com/python/cpython/blob/92c4f205940845df7a9ed654b8178a38e4935e0a/Misc/NEWS.d/next/Library/2018-07-16-14-10-29.bpo-22708.592iRR.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8305/{{ revealButtonHref }}
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.