diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-07-25 21:14:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-07-25 21:14:12 +0000 |
commit | 18853542a102a4a8be5fa139886b02e84f55d9af (patch) | |
tree | b99c66efd44afc85dfd80923d55af3e18425cd0f /lib | |
parent | 5b7a5046e6309710636c3347dba554b0b4a03c7c (diff) |
curl_close is a new function pointer that can be set to a protocol-specific
function to get called in the curl_close() function for cleanup
auth_host is added to store the original (first) host name used
Diffstat (limited to 'lib')
-rw-r--r-- | lib/urldata.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 07733a16e..3d03bfce7 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -170,6 +170,11 @@ struct connectdata { */ CURLcode (*curl_connect)(struct connectdata *connect); + /* This function *MAY* be set to a protocol-dependent function that is run + * in the curl_close() function if protocol-specific cleanups are required. + */ + CURLcode (*curl_close)(struct connectdata *connect); + /**** curl_get() phase fields */ /* READ stuff */ @@ -264,6 +269,7 @@ struct Configbits { bool use_netrc; bool user_passwd; bool verbose; + bool this_is_a_follow; /* this is a followed Location: request */ }; /* What type of interface that intiated this struct */ @@ -417,6 +423,11 @@ struct UrlData { #define MAX_CURL_USER_LENGTH 128 #define MAX_CURL_PASSWORD_LENGTH 128 + char *auth_host; /* if set, this is the allocated string to the host name + * to which to send the authorization data to, and no other + * host (which location-following otherwise could lead to) + */ + char user[MAX_CURL_USER_LENGTH]; char passwd[MAX_CURL_PASSWORD_LENGTH]; char proxyuser[MAX_CURL_USER_LENGTH]; |