Workaround via CURL (should go write libcurl bindings or fix SecureSocket thing)