void __transaction_completed_cb(http_transaction_h transaction, void *user_data)
{
int ret;
- http_status_code_e status = 0;
+ http_status_code_e status_code = 0;
+ char *status_text;
+ http_version_e version;
- ret = http_transaction_response_get_status_code(transaction, &status);
+ ret = http_transaction_response_get_status_code(transaction, &status_code);
+ ret = http_transaction_response_get_status_text(transaction, &status_text);
+ ret = http_transaction_response_get_version(transaction, &version);
- if (status < HTTP_STATUS_BAD_REQUEST)
+ if (status_code < HTTP_STATUS_BAD_REQUEST)
g_CallbackRet = HTTP_ERROR_NONE;
else
g_CallbackRet = HTTP_ERROR_OPERATION_FAILED;