whoami 26 Posted July 6, 2015 Report Share Posted July 6, 2015 Hello..Im upgrading my tools, and since I used lots of HTTP Requests, I realized that sometimes they got blocked. So I created an alternative method if this happens to trigger the browser method. But since I have to set proxy credentials I dont know the best methods.Ive already searched, I know some methods, but I want to know whats the best approach with less lines of code.When I create table from file it wont let me specify the separators I want for columns. Quote Link to post Share on other sites
Edward_2 85 Posted July 7, 2015 Report Share Posted July 7, 2015 a simple change proxy command does it for me Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted July 7, 2015 Report Share Posted July 7, 2015 when I do use the browser and need to use proxies this is what I do. define $Folder File Path(#FFP_FOLDER) { return("{$special folder("Application")}\\{#FFP_FOLDER}")} This first function is used often so made one for many uses. Reduces code. Below is commented and hopefully understandable.define Set Proxy(#PROXY INDEX) { comment("\"PROXY INDEX\" is the list index of theLarge list name \"proxies\" wich is loaded from file.") comment("for stst monitor") set(#C_current Proxy, "", "Global") comment("formatproxy:portproxy:port:username:pass") if(#UI_CB_proxies) { then { comment("as you can see uses large data pluginubot list can be used") if($comparison($plugin function("Bigtable.dll", "Large list total", "proxies"), "=", 0)) { then { alert("Please give me some proxies I am hungry!") comment("\"folder file path\" a separat function tha hasspecial forlder set to \"applictation\"") plugin command("File Management.dll", "open file", $Folder File Path("Data\\proxies.txt")) } else { comment("this is the proxy format break down") clear list(%proxy type) add list to list(%proxy type, $list from text($plugin function("Bigtable.dll", "Large list item", "proxies", #PROXY INDEX), ":"), "Delete", "Global") if($comparison($list total(%proxy type), ">", 2)) { then { set proxy credentials($list item(%proxy type, 2), $list item(%proxy type, 3)) change proxy("{$list item(%proxy type, 0)}:{$list item(%proxy type, 1)}:{$list item(%proxy type, 2)}:{$list item(%proxy type, 3)}") } else { change proxy("{$list item(%proxy type, 0)}:{$list item(%proxy type, 1)}") } } comment("for stst monitor") set(#C_current Proxy, $list item(%proxy type, 0), "Global") set(#C_proxy_index, #PROXY INDEX, "Global") } } } }} if you do not understand please do ask. CD Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.