Sign in to follow this  
Followers 0
HeinMueck

HTTPSetProxy & Auth broken?

3 posts in this topic

#1 ·  Posted (edited)

Hi,

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 3.2.4.9 and 3.2.12.1, 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, "192.168.1.38:8080", "user", "password")
If $ret == 0 Then
    MsgBox(16, "Example", "Proxy Error")
    Exit
EndIf

$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?

Cheers,

Hein

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

Hmm, useful ...

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  
Followers 0