![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
socks5-https-client
Advanced tools
SOCKS v5 HTTPS client implementation in JavaScript for Node.js.
var shttps = require('socks5-https-client');
shttps.get({
hostname: 'encrypted.google.com',
path: '/',
rejectUnauthorized: false // True by default.
}, function(res) {
res.setEncoding('utf8');
res.on('readable', function() {
console.log(res.read()); // Log response to console.
});
});
Specify the socksHost
and socksPort
options if your SOCKS server isn't running on localhost:1080
. Tor runs its SOCKS server on port 9050
by default, for example.
You may also pass a URL as the first argument to get
or request
, which will be parsed using url.parse
.
Works great for making HTTPS requests through Tor (see bundled example).
To use with Request, just pass an agent instance.
var Socks5ClientHttpsAgent = require('socks5-https-client/lib/Agent');
request({
url: 'https://encrypted.google.com/',
agent: new Socks5ClientHttpsAgent({
socksHost: 'my-tor-proxy-host', // Defaults to 'localhost'.
socksPort: 9050 // Defaults to 1080.
})
}, function(err, res) {
console.log(res);
});
This client only provides support for making HTTPS requests. See socks5-http-client for an HTTP implementation.
Copyright © 2013 Matthew Caruana Galizia, licensed under an MIT license.
FAQs
SOCKS v5 HTTPS client.
The npm package socks5-https-client receives a total of 22,028 weekly downloads. As such, socks5-https-client popularity was classified as popular.
We found that socks5-https-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.