René's URL Explorer Experiment


Title: fix: pass proxy credentials to binary download (fixes #164) by Arunendra21 · Pull Request #183 · browserstack/browserstack-local-nodejs · GitHub

Open Graph Title: fix: pass proxy credentials to binary download (fixes #164) by Arunendra21 · Pull Request #183 · browserstack/browserstack-local-nodejs

X Title: fix: pass proxy credentials to binary download (fixes #164) by Arunendra21 · Pull Request #183 · browserstack/browserstack-local-nodejs

Description: What browserstack-local-nodejs already accepts proxyUser / proxyPass and forwards them to the BrowserStackLocal binary as --proxy-user / --proxy-pass (see Local.js). However, when the library downloads the binary itself, LocalBinary.download() builds the HttpsProxyAgent with only host and port: options.agent = new HttpsProxyAgent({ host: conf.proxyHost, port: conf.proxyPort }); So behind a proxy that requires authentication, the binary download fails with 407 Proxy Authentication Required even when the user has supplied valid proxy credentials. This is #164. Fix Include the credentials in the proxy agent options when both proxyUser and proxyPass are provided. https-proxy-agent@^5 (the version already used here) accepts an auth: "user:pass" option, which it sends as the Proxy-Authorization header: var proxyOptions = { host: conf.proxyHost, port: conf.proxyPort }; if (conf.proxyUser && conf.proxyPass) { proxyOptions.auth = conf.proxyUser + ':' + conf.proxyPass; } options.agent = new HttpsProxyAgent(proxyOptions); The change is scoped to the download path and only adds auth when both credentials are present, so existing unauthenticated-proxy and no-proxy behaviour is unchanged. Tests Added two tests to test/local.js (they stub https.get, so no network is required): credentials present -> the proxy agent carries auth: "user:pass". only host/port -> no auth is set (behaviour unchanged). Fixes #164

Open Graph Description: What browserstack-local-nodejs already accepts proxyUser / proxyPass and forwards them to the BrowserStackLocal binary as --proxy-user / --proxy-pass (see Local.js). However, when the library downl...

X Description: What browserstack-local-nodejs already accepts proxyUser / proxyPass and forwards them to the BrowserStackLocal binary as --proxy-user / --proxy-pass (see Local.js). However, when the library downl...

Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/pull/183

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:becc2e90-8e9d-8db6-fc25-95d43717d769
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8946:22033E:41C6AB:585E2A:6B0439F6
html-safe-noncedbd8fee11efec965ea558ddf827193672ce7ed83e73d7a5bbbe75f6c8922746f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTQ2OjIyMDMzRTo0MUM2QUI6NTg1RTJBOjZCMDQzOUY2IiwidmlzaXRvcl9pZCI6Ijc2MzYzMTM1MjYwNzE3MzY4MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc06688f2645c2bd306c1fc0b0339ecd0f4a6d431deab01ba64a5899a177820f6
hovercard-subject-tagpull_request:4342082272
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/browserstack/browserstack-local-nodejs/pull/183/files
twitter:imagehttps://avatars.githubusercontent.com/u/156455722?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/156455722?s=400&v=4
og:image:altWhat browserstack-local-nodejs already accepts proxyUser / proxyPass and forwards them to the BrowserStackLocal binary as --proxy-user / --proxy-pass (see Local.js). However, when the library downl...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923223
octolytics-dimension-repository_nwobrowserstack/browserstack-local-nodejs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923223
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-nodejs
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fpull%2F183%2Ffiles
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%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fpull%2F183%2Ffiles
Sign uphttps://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=browserstack%2Fbrowserstack-local-nodejs
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files
Reloadhttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files
browserstackhttps://github.com/browserstack
browserstack-local-nodejshttps://github.com/browserstack/browserstack-local-nodejs
Codehttps://github.com/browserstack/browserstack-local-nodejs
Issues25 (25)https://github.com/browserstack/browserstack-local-nodejs/issues
Pull requests29 (29)https://github.com/browserstack/browserstack-local-nodejs/pulls
Actionshttps://github.com/browserstack/browserstack-local-nodejs/actions
Projectshttps://github.com/browserstack/browserstack-local-nodejs/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-nodejs/security
Insightshttps://github.com/browserstack/browserstack-local-nodejs/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-nodejs%2Fissues%2Fnew%2Fchoose
Arunendra21https://github.com/Arunendra21
browserstack:masterhttps://github.com/browserstack/browserstack-local-nodejs/tree/master
Arunendra21:fix/proxy-auth-binary-downloadhttps://github.com/Arunendra21/browserstack-local-nodejs/tree/fix/proxy-auth-binary-download
Conversation 2 https://github.com/browserstack/browserstack-local-nodejs/pull/183
Commits 1 https://github.com/browserstack/browserstack-local-nodejs/pull/183/commits
Checks 0 https://github.com/browserstack/browserstack-local-nodejs/pull/183/checks
Files changed https://github.com/browserstack/browserstack-local-nodejs/pull/183/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files
fix: pass proxy credentials to binary download (fixes #164) https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-local-nodejs/pull/183/files
c09cc93 fix: pass proxy credentials to binary download Arunendra21 Aug 23, 2026 https://github.com/browserstack/browserstack-local-nodejs/pull/183/commits/c09cc931035709ef06a547c2056ef52701bc5e00
Clear filters https://github.com/browserstack/browserstack-local-nodejs/pull/183/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files
LocalBinary.js https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
local.js https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
lib/LocalBinary.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
View file https://github.com/browserstack/browserstack-local-nodejs/blob/c09cc931035709ef06a547c2056ef52701bc5e00/lib/LocalBinary.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/183/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-5af64958aaf2b1a4a750ddf96b03cc5742385ee3429d829dd0052429f81d47f3
https://github.com/browserstack/browserstack-local-nodejs/blob/master/CODEOWNERS#L1
test/local.jshttps://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
View file https://github.com/browserstack/browserstack-local-nodejs/blob/c09cc931035709ef06a547c2056ef52701bc5e00/test/local.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-nodejs/pull/183/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
https://github.com/browserstack/browserstack-local-nodejs/pull/183/files#diff-de3a83ad024f2fb51977a7a30106c9507902d3efefdbd980946aa4afabf896b8
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.