chill117 / proxy-verifier

NodeJS module to check proxies: if functional, anonymity level, tunneling, supported protocols.
MIT License
76 stars 16 forks source link

Example of verifying proxy with user and pass #31

Open Mako-L opened 4 years ago

Mako-L commented 4 years ago

I don't seem to find any example of how to use it with proxies that require authentication.

calvincanas commented 3 years ago

You need to do some coding for auth because it is not yet done for you. add another property to proxy object named auth then the value is 'Basic '+ combine user and password with a colon(e.g user:pass) then encode it using base64.

Example is: 'Basic YWxhZGRpbjpvcGVuc2VzYW1l'-- reference https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization