Jump to content
Sign in to follow this  
markloman

HttpSetProxy mode 2 problem?

Recommended Posts

I have some problems with HttpSetProxy in mode 2.

Mode 2 = Use the proxy specified

I want to implement proxy authentication in my AutoIt program. I am testing this mode with CCProxy from YoungZSoft.

When I use the code below CCProxy denies access (Unauthorized) while the exact same login details work in Internet Explorer.

HttpSetProxy ( 2, "192.168.100.100:808", "admin", "admin" )
InetGet ( "url", "filename", 1, 0 )

I hope someone can help.

Edit: I have tried using WinGate instead of CCProxy. Same problem. But when Internet Explorer is authenticated, InetGet retrieves the file. When Internet Explorer is not authenticated, file cannot be downloaded (access denied). Please help.

Edited by markloman

Share this post


Link to post
Share on other sites

I hope someone can look into this problem soon. Perhaps this bug is in all AutoIt v3 releases?

Edit: I have tried ISA Server 2004:

- Digest Authentication on Web Proxy: Error Code: 407 Proxy Authentication Required

- Basic Athentication (Plain text) on Web Proxy: Error Code: 407 Proxy Authentication Required

It does not work...

The manual also states:

HttpSetProxy ( mode [, "proxy:port" [, "username", "password"]] )

; Use no proxy
HttpSetProxy(1)

; Use IE defaults for proxy
HttpSetProxy(0)

; Use the proxy "www-cache.myisp.net" on port 8080
HttpSetProxy(0, "www-cache.myisp.net:8080")

The proxy mode to use:

0 = (default) Use current Internet Explorer settings for proxy.

1 = Use no proxy (direct access)

2 = Use the proxy specified

As you can see, the manual has an error too. The last line supposed to be concerning "Use the proxy specified" and therefor should be HttpSetProxy ( 2, "www-cache.myisp.net:8080").

Edited by markloman

Share this post


Link to post
Share on other sites

You did read the bit about it only working with CERN proxies didn't you? Definately won't work with ISA. I've changed the example, cheers.

Not sure what sort of proxy the other you mentioned is. A quick look on the CCProxy webpage has a comment about it being a SOCKS proxy.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...