From: jalitt on
Hello,

I am a tcl user behind a corporate firewall. I'd like to develop an
app that communicates with a server outside of the firewall, and I'd
like to write this app in tcl. The only problem is that autoproxy
does not work because my company stores proxy info on a website. IE
knows the url and uses it just fine, but autoproxy seems unable to do
so. Is there anyway to grab the proxy info from that site and
configure the http package accordingly?

Sincerely,

Joshua Litt
From: Alexandre Ferrieux on
On Jun 26, 5:19 am, jal...(a)gmail.com wrote:
> Hello,
>
> I am a tcl user behind a corporate firewall. I'd like to develop an
> app that communicates with a server outside of the firewall, and I'd
> like to write this app in tcl. The only problem is that autoproxy
> does not work because my company stores proxy info on a website. IE
> knows the url and uses it just fine, but autoproxy seems unable to do
> so. Is there anyway to grab the proxy info from that site and
> configure the http package accordingly?

If you are in the same case as I am, you're out of luck :-)
Indeed all the logic is written in Javascript to be executed by the
client (the browser)... In my case the workaround is to identify the
proxy to use for the "outside" which is (in my company) constant for a
given location of the client machine (my company is multi-site). Yes,
it's awfully inelegant, but taming a SpiderMonkey just for that was
contrary to my religion ;-)

-Alex

From: Alexandre Ferrieux on
On Jun 26, 1:18 pm, Pat Thoyts <cnggub...(a)hfref.fbheprsbetr.arg>
wrote:
>
> Using libcurl might be another solution.
>

I'm interested ! But how is libcurl supposed to handle the Javascript
encoding the logic ?

-Alex
From: jalitt on
Thanks for all the prompt replys. Pat, I'm curious as to how libcurl
might be used to solve this problem? I'd hate to have all that nasty
code for dealing with windows objects embedded forever in my tcl
code. I'm not against making the user enter a url if autoproxy cannot
discover proxy information from system standard places.

Glenn, my corporate firewall returns a similar .pac file with a
similar FindProxyForURL function. How can this function be called
from tcl?

Sincerely,

Joshua Litt
From: Alexandre Ferrieux on
Pat, would you be so kind as to answer my question on libcurl ?

-Alex