Sign in to follow this  
Followers 0
Mutebox

Need Help with HttpSetProxy

3 posts in this topic

I am trying to use HttpSetProxy to change to a proxy in a list that I created, but none are being set and its not working correctly. Can anyone help me with this?

#include <file.au3>
#include <IE.au3>

Global $pArray
Global $sTxtProxy = "C:\ProxyList.txt"
    
    If Not _FileReadToArray($sTxtProxy, $pArray) Then
            MsgBox(4096, "Error", "Error reading file to Array   error:" & @error)
            Exit
        EndIf
    
For $pLine = 1 to $pArray[0]
        ToolTip("Changing Proxy", 0, 0, "Proxy Change")
        HttpSetProxy(2, $pArray[$pLine])
        _IECreate("http://www.whatismyip.com/")
Next

Share this post


Link to post
Share on other sites



Really? Even though the help file has examples like

; Use no proxy
HttpSetProxy(1)

; Use IE defaults for proxy
HttpSetProxy(0)

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

Which these have no reference to InetGet(). Please redefine your post and please know what your talking about or if the Help file is wrong then sorry for even bothering trying to get help from the board were a function was suppose to do what it says its suppose to do.

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