diff options
Diffstat (limited to 'src/common/linux/http_upload.h')
-rw-r--r-- | src/common/linux/http_upload.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/linux/http_upload.h b/src/common/linux/http_upload.h index 040fd2de..fa6ad12c 100644 --- a/src/common/linux/http_upload.h +++ b/src/common/linux/http_upload.h @@ -53,13 +53,16 @@ class HTTPUpload { // Only HTTP(S) URLs are currently supported. Returns true on success. // If the request is successful and response_body is non-NULL, // the response body will be returned in response_body. + // If the send fails, a description of the error will be + // returned in error_description. static bool SendRequest(const string &url, const map<string, string> ¶meters, const string &upload_file, const string &file_part_name, const string &proxy, const string &proxy_user_pwd, - string *response_body); + string *response_body, + string *error_description); private: // Checks that the given list of parameters has only printable |