zenesin Posted October 27, 2019 Share Posted October 27, 2019 (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 October 27, 2019 by zenesin Link to comment Share on other sites More sharing options...
ur Posted October 27, 2019 Share Posted October 27, 2019 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 zenesin 1 Link to comment Share on other sites More sharing options...
zenesin Posted November 1, 2019 Author Share Posted November 1, 2019 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 More sharing options...
TheXman Posted November 1, 2019 Share Posted November 1, 2019 (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 November 2, 2019 by TheXman zenesin 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
zenesin Posted November 2, 2019 Author Share Posted November 2, 2019 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 More sharing options...
TheXman Posted November 2, 2019 Share Posted November 2, 2019 (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 November 2, 2019 by TheXman zenesin 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now