Tk Library Source Code

View Ticket
Login
Ticket UUID: 3107937
Title: Manual/Modification: when is autoproxy hooked to http
Type: Bug Version: None
Submitter: oehhar Created on: 2010-11-12 13:52:12
Subsystem: http :: autoproxy Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-07-04 17:25:20
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
IMHO, the following fact is:
- not very handy
- not clearly expressed in the manual
The autoproxy module only hooks into the http module by:
http::config -proxyfilter [namespace origin filter]
when:
- autoproxy::init is called
- and a proxy is found in the system or specified to the command

A proxy specification by:
autoproxy::configure -proxy_host ...
does not hook autoproxy into http and thus just does nothing.
A:
autoproxy::configure -proxy_host ""
does not unhook the autoproxy module (which is propably no issue but might be done too)

Bug or feature ?

I propose to:
- change autoproxy::configure to hook autoproxy, if the option proxy_port is configured with a value
- perhaps document the parameters of autoproxy::init
  Specially, I find the used format very handy for own configuration options:
    URL and comma-separated proxy exception list
the attached patch works for me.

See this clt-thread for the discussion:

http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/f04ff7683d61cc45/08150dfe8ce5b5d6#08150dfe8ce5b5d6

Thanks to Alexandre to work this out !!!

Harald
User Comments: oehhar added on 2010-11-12 20:52:13:

File Added - 393055: autoproxy.patch

Attachments: