Jump to content

How can i use, CURL with Autoit ?


zenesin
 Share

Recommended Posts

On 10/27/2019 at 11:48 PM, ur said:

Or you can directly use curl.exe instead of running it from cmd.exe

curl available  https://curl.haxx.se/windows/

Or you can use the curl udf available 

 

Hello,

Thanks for the info, I wrote a dynamic dns program, I needed curl requests for ip address updates, I took care of it via cmd for now, but as you say, curl.exe is also available.

Link to comment
Share on other sites

Does the DDNS update API require a POST or can you use a GET?  If you can use a GET, then it is much simpler to use the InetRead() function than it is to run an external command.

Edited by TheXman
Link to comment
Share on other sites

16 hours ago, TheXman said:

Does the DDNS update API require a POST or can you use a GET?  If you can use a GET, then it is much simpler to use the InetRead() function than it is to run an external command.

Hello,

My DDNS system only requires an HTTP PUT request to update. The InetRead () function can alternatively be used for GET requests, but this will create problems when the program needs to send different requests later.

Thanks for answer.

Link to comment
Share on other sites

I have written DDNS updaters also, so I knew that some DDNS providers have APIs that allow simple GET requests.  Others, allow GET requests but require additional header information like special User-Agent strings.  In those cases, InetRead() wouldn't work.  Of course some also allow POST & PUT requests, as you stated.  I just brought it up in case you may had overlooked that option.  :)

Edited by TheXman
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...