Performs an HTTP request.
The string returned in the response parameter must be freed from memory! The SK_StringDispose function is recommended for this purpose.
When sending the request, the HTTP header does not contain a user-agent value.
All possible return values are included in the SK_ResultCode enumeration. Return codes to expect include:
Result Code | Description |
---|---|
SK_ResultCode.SK_ERROR_NONE | No error. |
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS | Some or all of the arguments are invalid. |
SK_ResultCode.SK_ERROR_WEBSERVICE_CALL_FAILED | An unexpected failure occurred during an attempt to call a Web Service. |
SK_ResultCode.SK_ERROR_HTTP_INITIALIZATION_FAILED | The HTTP client failed to initialize. |
SK_ResultCode.SK_ERROR_HTTP_CONNECTION_FAILED | The server could not be reached. Verify that the computer is connected to the Internet, and that the firewall/proxy is set-up properly. |
SK_ResultCode.SK_ERROR_HTTP_COULD_NOT_RESOLVE_HOST | The server could not be located. Verify that the computer is connected to the Internet, and that the firewall/proxy is set-up properly. |
SK_ResultCode.SK_ERROR_SSL_FAILED | The HTTPS request failed due to an SSL related error. |
SK_ResultCode.SK_ERROR_SSL_CERTIFICATE_UNAVAILABLE | The client certificate for SSL communication could not be found. |