Check for return value of http_request_append_data only when needed.