If you like to use our CURL plugin in Xojo or Real Studio, you can start with one of the example projects or from scratch. Here we show you how to make an easy download. So first you need a new object of the CURLSMBS class and you create it with the new command. Now you can set all the options like OptionURL. For the data you receive, you can subclass and implement the Write event. Or you simply set CollectOutputData to true. In that case the plugin collects the data and you later find it int he OutputData property.
To run the transfer, you call Perform method. If you run the transfer in a thread, you may want to look in the PerformMT function for better threading.
After the transfer completed and you have no error on the transfer, you can work on the result. For example you can use GetInfoHTTPConnectCode function to see what HTTP error code you got. There success has the value 200. So here is your example code:

Next you may need to add more options like OptionUserName/OptionPassword. Also you can set proxy or other authentications.
CURL is powerful and can do http requests, ftp/sftp/ftps up and downloads, send emails or send forms.
05 07 13 - 13:52