aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-04-30 21:20:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-04-30 21:20:08 +0000
commit852989856d3802a9e7bd2f1e368302d92ddf66e2 (patch)
treec26ddf2fbf798b3939f0867bff7b90dfdcde0148 /include
parent7dfdbf8fbebab9af95e19c5ff8af3073218e4a4f (diff)
- To make it easier for applications that want lots of magic stuff done on
redirections and thus cannot use CURLOPT_FOLLOWLOCATION easily, we now introduce the new CURLINFO_REDIRECT_URL option that lets applications extract the URL libcurl would've redirected to if it had been told to. This then enables the application to continue to that URL as it thinks is suitable, without having to re-implement the magic of creating the new URL from the Location: header etc. Test 1029 verifies it.
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 8b7268188..6fcc34faf 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1587,9 +1587,10 @@ typedef enum {
CURLINFO_COOKIELIST = CURLINFO_SLIST + 28,
CURLINFO_LASTSOCKET = CURLINFO_LONG + 29,
CURLINFO_FTP_ENTRY_PATH = CURLINFO_STRING + 30,
+ CURLINFO_REDIRECT_URL = CURLINFO_STRING + 31,
/* Fill in new entries below here! */
- CURLINFO_LASTONE = 30
+ CURLINFO_LASTONE = 31
} CURLINFO;
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as