Jump to content

HTTPSetProxy & Auth broken?


 Share

Recommended Posts

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
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...