Jump to content

Need Help with HttpSetProxy


Recommended Posts

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

AFAIK HttpSetProxy() is only for inbuilt functions like InetGet(), you need to think up some other solution.

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

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...