-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Open
Description
Describe the bug
Hello,
as reported in issue #6517, it's not possible to perform https request through http proxy.
I get the following error from our corporate McAfee/Skyhigh Secure Web Gateway HTTP proxy when I make a HTTPS call.
Can't initialize server context:handshakefailed:server state 1:state 9:Application response 500 handshakefailed
Thank you
To Reproduce
Just run the code below
Code snippet
const axios = require('axios');
const url = 'https://ifconfig.me';
const options = {
proxy: {
host: 'proxy.xxxx.xxx',
port: 3128,
protocol: 'http',
},
};
axios
.get(url, options)
.then((response) => console.log(response))
.catch((err) => console.error(err));Expected behavior
Get my external ip
Axios Version
1.13.2
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
22.16.0
OS
macOS 26.0.1 arm64
Additional Library Versions
Additional context/Screenshots
Metadata
Metadata
Assignees
Labels
No labels