Announcing GNOME Network Proxy Resolver



Hi there,

please let me introduce the latest addition to the category of totally
useless software by announcing...

	GNOME Network Proxy Resolver !

What it is
==========

GNOME Network Proxy Resolver provides proxy lookup with PAC support via
DBUS. This allows other programmes to support the "Automatic proxy
configuration" option from GNOME control centre's Network Preferences
without embedding a JavaScript interpreter just for this tiny feature.

Where to get it
===============

bzr get http://www.gnome.org/~chpe/bzr/gnome-network-proxy-resolver/
or use the tarballs at http://www.gnome.org/~chpe/releases/

Requirements
============

* gecko 1.8 or trunk (xulrunner or firefox)
* libdbus and libdbus-glib

Licence
=======

LGPL 2.1+ (although the dependency on libdbus effectively makes it
GPL 2-only)

How to use it
=============

$ python
>>> import dbus
>>> bus = dbus.SessionBus()
>>> proxy = bus.get_object('org.gnome.NetworkProxy.Resolver',
'/org/gnome/NetworkProxy/Resolver')
>>> print proxy.GetProxyForURI('http://www.gnome.org')
[u'http', u'192.168.2.1', 3128]

The input must be a valid URI.

The response is a (string, string, int) tuple containing:
- the proxy method to use: 'http', 'socks' (v5), 'socks4', or 'direct'.
- the proxy host; empty for 'direct'
- the proxy port; -1 for default port

Where to send bug reports
=========================

Please send bug reports and any other questions to
mailto:epiphany-list gnome org


Regards,
	Christian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]