@@ -46,6 +46,10 @@ GglError fetch_token(
46
46
error = gghttplib_process_request (& curl_data , buffer );
47
47
}
48
48
49
+ long http_status_code = 0 ;
50
+ curl_easy_getinfo (curl_data .curl , CURLINFO_HTTP_CODE , & http_status_code );
51
+ GGL_LOGI ("HTTP code: %ld" , http_status_code );
52
+
49
53
gghttplib_destroy_curl (& curl_data );
50
54
51
55
return error ;
@@ -60,6 +64,10 @@ GglError generic_download(const char *url_for_generic_download, int fd) {
60
64
error = gghttplib_process_request_with_fd (& curl_data , fd );
61
65
}
62
66
67
+ long http_status_code = 0 ;
68
+ curl_easy_getinfo (curl_data .curl , CURLINFO_HTTP_CODE , & http_status_code );
69
+ GGL_LOGD ("Return HTTP code: %ld" , http_status_code );
70
+
63
71
gghttplib_destroy_curl (& curl_data );
64
72
return error ;
65
73
}
@@ -141,6 +149,10 @@ GglError sigv4_download(
141
149
error = gghttplib_process_request_with_fd (& curl_data , fd );
142
150
}
143
151
152
+ long http_status_code = 0 ;
153
+ curl_easy_getinfo (curl_data .curl , CURLINFO_HTTP_CODE , & http_status_code );
154
+ GGL_LOGD ("Return HTTP code: %ld" , http_status_code );
155
+
144
156
gghttplib_destroy_curl (& curl_data );
145
157
146
158
return error ;
@@ -200,6 +212,10 @@ GglError gg_dataplane_call(
200
212
ret = gghttplib_process_request (& curl_data , response_buffer );
201
213
}
202
214
215
+ long http_status_code = 0 ;
216
+ curl_easy_getinfo (curl_data .curl , CURLINFO_HTTP_CODE , & http_status_code );
217
+ GGL_LOGI ("HTTP code: %ld" , http_status_code );
218
+
203
219
gghttplib_destroy_curl (& curl_data );
204
220
205
221
return ret ;
0 commit comments