From 63a2ea92454625c16ce494afd0ba364eb20ebc0c Mon Sep 17 00:00:00 2001 From: "gunsch@chromium.org" Date: Thu, 18 Sep 2014 16:48:49 +0000 Subject: GoogleCrashdumpUploader: adds Upload(string*) API to get the HTTP response. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1379 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/linux/google_crashdump_uploader.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/common/linux/google_crashdump_uploader.cc') diff --git a/src/common/linux/google_crashdump_uploader.cc b/src/common/linux/google_crashdump_uploader.cc index 4da1f5e4..6d86fb36 100644 --- a/src/common/linux/google_crashdump_uploader.cc +++ b/src/common/linux/google_crashdump_uploader.cc @@ -161,7 +161,9 @@ bool GoogleCrashdumpUploader::CheckRequiredParametersArePresent() { } -bool GoogleCrashdumpUploader::Upload() { +bool GoogleCrashdumpUploader::Upload(int* http_status_code, + string* http_response_header, + string* http_response_body) { bool ok = http_layer_->Init(); if (!ok) { std::cout << "http layer init failed"; @@ -193,6 +195,8 @@ bool GoogleCrashdumpUploader::Upload() { std::cout << "Sending request to " << crash_server_; return http_layer_->SendRequest(crash_server_, parameters_, - NULL); + http_status_code, + http_response_header, + http_response_body); } } -- cgit v1.2.3