Jump to content
Sign in to follow this  

HTTPSetProxy & Auth broken?

Recommended Posts



I'm trying to do a inetget through a proxy that requieres authentication. Apart from not beeing able to distinguish between proxies that want auth and proxies that don't because of the missing @error docs (http://www.autoitscript.com/forum/index.php?showtopic=84709), I found out that when specifying credentials to a proxy InetGet will fail anyway. Something seems to be broken here. I tried it with and, both the same. Proxy is a Squid3 with basic auth and works fine ans as expected from that machine for IE and Firefox. I know the docs say "Only CERN proxy servers are supported." Does this mean that AutoIt only supports THE (mindboggingly stoneaged) CERN httpd or is a squid being considered as CERN-like enough to work with it, too?

$ret = HttpSetProxy(2, "", "user", "password")
If $ret == 0 Then
    MsgBox(16, "Example", "Proxy Error")

$ret = InetGet("http://www.google.com/index.html", @TempDir & "\test.file.html", 1, 0)
MsgBox(0, "Example", "Result: " & $ret)

If you lower the curtains on the proxy and try it without auth it works.

Is there any way around it?



Edited by HeinMueck

Share this post

Link to post
Share on other sites

CERN only proxies, squid isn't supported. Not in the helpfile, not default to autoit. You may be able to find a proxy function a user has made but I wouldn't bet on it.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.