Jump to content
Sign in to follow this  
MikeSSSS

cURL and AutoIT

Recommended Posts

MikeSSSS

Hello AutoIT Community,

I am in need of a tool(preferably) cURL that will allow me to visit a web link and execute commands. This is because I am using what is called a web power switch. An example of what I want to be done can be found here.

Digital Loggers - Web Power Switch

To run a script via a URL, first log in and authenticate. Next, the URL: http://Your_IP/script?runNNN to start execution at line NNN. For example, http://script?run100 starts script execution at line 100. Please log in first, or you'll be redirected to the login page.

Are there any current examples of autoIT that can achieve this task?

Thanks for your help

Share this post


Link to post
Share on other sites
MikeSSSS

Ideally I would be doing something along the lines of:

DllCall("libcurl.dll", "void", "*curl_easy_init")
DllCall("libcurl.dll","curl_easy_setopt","int:cdecl","CURL","curl","CURLoption","CURLOPT_URL","long","http://google.com")
DllCall("libcurl.dll","void", "curl_easy_cleanup","CURL","curl")

But I am just not sure if the parameters are all right, and how to initialize a data type from a dll. Knowing those two items would be very helpful to me.

Thanks!

(Sorry for the double post)

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  

×