This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple PAC script example | |
function FindProxyForURL(url, host) { | |
if ( /*condition to pass the request through a local proxy server */ ) { | |
return 'PROXY 127.0.0.1:8080'; | |
/* If you have Tor installed you can route this connection over Tor like so;*/ | |
/* return 'PROXY 127.0.0.1:9050'; */ | |
} | |
if ( /*condition to pass the request through a network proxy server */ ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: latin-1 -*- | |
# | |
# Copyright (C) AB Strakt | |
# Copyright (C) Jean-Paul Calderone | |
# See LICENSE for details. | |
""" | |
Simple SSL client, using blocking I/O | |
""" |