Proxies driving me crazy...

Mike Bonner bonnmike at gmail.com
Tue Jul 14 17:38:03 CEST 2015


If a system wide proxy is set, using the newer method (if I recall
correctly) setting the httpProxy to empty should override the use of the
system proxy.
The thing is, I don't remember if setting the httpProxy is one of those..
"It works for this handler then resets" types of settings.  If thats the
case, you might try breaking out your calls into "need a proxy" and "don't
need a proxy" handlers.
Then dispatch a message to whichever you need and set the httpproxy in the
"don't need" to empty.

The other leave alone and see if it will pick up the system proxy. If
setting the httpProxy is persistent, then you'd have to set the proxy for
each type. Empty (as you are in your last example) and to the correct
setting for the other.

Setting it to 127.0.0.1:80 shouldn't work unless your have the local system
set up as a proxy server. If not, it'd have no clue what to do with it.

On Tue, Jul 14, 2015 at 7:13 AM, Malte Brill <revolution at derbrill.de> wrote:

> Hi all,
>
> I just came back from a client where an app of mine is forced to either
> communicate through a proxy, or not, depending on the URL that is being
> provided.
>
> While this used to work in previous versions of the engine under windows,
> it no longer does:
>
> — quotes are taken over by email client. are always upper quotes
> set the httpProxy to empty
> get URL "http://idonotneedaproxy.com <http://idonotneedaproxy.com/>“
> set the httpProxy to tProxy — defined elsewhere and valid
> get URL „http://ineedaproxy.com <ttp://ineedaproxy.com>“
>
> With a (semi) current engine (6.7.3) this fails. it always tries to
> communicate through the proxy. However if I do something like this:
>
> set the httpProxy to „127.0.0.1:80"
> get URL "http://idonotneedaproxy.com <http://idonotneedaproxy.com/>“
> set the httpProxy to empty
> get URL "http://idonotneedaproxy.com <http://idonotneedaproxy.com/>“
> set the httpProxy to tProxy — defined elsewhere and valid
> get URL „ <ttp://ineedaproxy.com>http://ineedaproxy.com“ <
> http://ineedaproxy.com%e2%80%9c/>
>
> It works??? The first get with 127.0.0.1:80 as a proxy fails, but then
> the empty one works???
>
> Can somebody please enlighten me why? I know some version of libURL
> introduced automatic picking up from the registry on Win, however that
> seems to fail, as the exceptions defined there are not honoured… This is
> really causing me a lot of lost hair.
>
> Best,
>
> Malte
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


More information about the use-livecode mailing list