diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-20 15:42:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-20 15:42:24 +0000 |
commit | 5974309d10e2db1bddc49ed6cca2f372bfc739ce (patch) | |
tree | bc52e172f318f93e9920f320975de77a7616f636 /src | |
parent | d00e4a377b4a7c432c15670b9316ceb53a9ad08c (diff) |
CURLINFO_RESPONSE_CODE replaces CURLINFO_HTTP_CODE
Diffstat (limited to 'src')
-rw-r--r-- | src/writeenv.c | 2 | ||||
-rw-r--r-- | src/writeout.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/writeenv.c b/src/writeenv.c index fefac5a62..8932b5073 100644 --- a/src/writeenv.c +++ b/src/writeenv.c @@ -44,7 +44,7 @@ struct } variables[14] = { {"curl_url_effective", CURLINFO_EFFECTIVE_URL, writeenv_STRING}, - {"curl_http_code", CURLINFO_HTTP_CODE, writeenv_LONG}, + {"curl_http_code", CURLINFO_RESPONSE_CODE, writeenv_LONG}, {"curl_time_total", CURLINFO_TOTAL_TIME, writeenv_DOUBLE}, {"curl_time_namelookup", CURLINFO_NAMELOOKUP_TIME, writeenv_DOUBLE}, {"curl_time_connect", CURLINFO_CONNECT_TIME, writeenv_DOUBLE}, diff --git a/src/writeout.c b/src/writeout.c index 5a7628998..6c86489c3 100644 --- a/src/writeout.c +++ b/src/writeout.c @@ -118,7 +118,7 @@ void ourWriteOut(CURL *curl, char *writeinfo) break; case VAR_HTTP_CODE: if(CURLE_OK == - curl_easy_getinfo(curl, CURLINFO_HTTP_CODE, &longinfo)) + curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo)) fprintf(stream, "%03d", longinfo); break; case VAR_HEADER_SIZE: |