I’ve released a new version of htbaapub.rest which contains a fix that normally makes libcurl generate an error.
When doing a HEAD request the server is supposed to return the same headers as when a GET request is being done. This also includes the Content-Length header. cURL however complains that the reported Content-Length couldn’t be read and generates a CURLE_PARTIAL_FILE (18) error.
Htbaapub.rest would simply throw an exception when cURL generated an error. Now this specific case is being ignored. So all HEAD requests which generate the CURLE_PARTIAL_FILE (18) error will succeed, as it’s supposed to.
This was fixed in version 1.05 but shortly after that I released 1.06 which includes the latest OpenSSL DLL’s (version 184.108.40.206).
My REST module htbaapub.rest has been updated with a set of response code helper methods. Instead of doing a precise check on the status code (e.g. 202) you can now check if it’s inside the 2xx range. This release brings the IsInfo(), IsSuccess(), IsError(), IsRedirect(), IsClientError() and IsServerError() helper methods.
htbaapub.mod got updated to version 1.08 today. This version contains a version 1.03 of rest.mod.
Download htbaapub.mod 1.08 (contains source code of all modules)
I’ve just licensed all modules that are part of htbaapub.mod 1.07 under the MIT license.
All updates have been pushed to GitHub. Sqlbuilder.mod, which isn’t included in the htbaapub.mod repository because it isn’t finished, has also been released under the MIT License.
If you don’t use Git you can a full source download from here: 1.07 – Sources of all modules.
htbaapub.mod got updated to version 1.03 today.
This version contains an updated fsm.mod, rest.mod and rackspacecloudfiles.mod. If you use any of these modules I recommend updating.
Download htbaapub.mod 1.03 (contains source code of all modules)