added maxredirs, moved CURL_PROGRESS* defines to src/main.c

This commit is contained in:
Daniel Stenberg 2000-11-28 09:10:04 +00:00
parent b8f7d94ef1
commit 6bd75ab840

View File

@ -172,6 +172,7 @@ typedef enum {
CURLE_HTTP_PORT_FAILED, /* HTTP Interface operation failed */ CURLE_HTTP_PORT_FAILED, /* HTTP Interface operation failed */
CURLE_BAD_PASSWORD_ENTERED, /* when the my_getpass() returns fail */ CURLE_BAD_PASSWORD_ENTERED, /* when the my_getpass() returns fail */
CURLE_TOO_MANY_REDIRECTS , /* catch endless re-direct loops */
CURL_LAST CURL_LAST
} CURLcode; } CURLcode;
@ -418,16 +419,16 @@ typedef enum {
function */ function */
CINIT(PASSWDDATA, OBJECTPOINT, 67), CINIT(PASSWDDATA, OBJECTPOINT, 67),
/* Maximum number of http redirects to follow */
CINIT(MAXREDIRS, LONG, 68),
/* Pass a pointer to a time_t to get a possible date of the requested /* Pass a pointer to a time_t to get a possible date of the requested
document! Pass a NULL to shut it off. */ document! Pass a NULL to shut it off. */
CINIT(FILETIME, OBJECTPOINT, 68), CINIT(FILETIME, OBJECTPOINT, 69),
CURLOPT_LASTENTRY /* the last unusued */ CURLOPT_LASTENTRY /* the last unusued */
} CURLoption; } CURLoption;
#define CURL_PROGRESS_STATS 0 /* default progress display */
#define CURL_PROGRESS_BAR 1
typedef enum { typedef enum {
TIMECOND_NONE, TIMECOND_NONE,
@ -469,7 +470,7 @@ char *curl_getenv(char *variable);
char *curl_version(void); char *curl_version(void);
/* This is the version number */ /* This is the version number */
#define LIBCURL_VERSION "7.5-pre3" #define LIBCURL_VERSION "7.5-pre4"
#define LIBCURL_VERSION_NUM 0x070500 #define LIBCURL_VERSION_NUM 0x070500
/* linked-list structure for the CURLOPT_QUOTE option (and other) */ /* linked-list structure for the CURLOPT_QUOTE option (and other) */