Jump to content

Recommended Posts

Posted (edited)

Hello,

I need to use the CURL structure in autoit.

How do I proceed?

-- Fixed I enabled CURL support in Windows CMD and sent commands to CMD via Autoit.

Türkiye'den selamlar.

Edited by zenesin
Posted
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.

Posted (edited)

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

Posted (edited)

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...