mirror of https://github.com/moparisthebest/curl
new httpauth support, changed filetime variable kind
This commit is contained in:
parent
c2faa39b62
commit
6f02ddfce8
|
@ -83,7 +83,7 @@
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
#ifdef HAVE_ZLIB_H
|
#ifdef HAVE_ZLIB_H
|
||||||
#include <zlib.h> /* for content-encoding 08/28/02 jhrg */
|
#include <zlib.h> /* for content-encoding */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GSSAPI
|
#ifdef GSSAPI
|
||||||
|
@ -466,7 +466,7 @@ struct connectdata {
|
||||||
struct dynamically_allocated_data {
|
struct dynamically_allocated_data {
|
||||||
char *proxyuserpwd; /* free later if not NULL! */
|
char *proxyuserpwd; /* free later if not NULL! */
|
||||||
char *uagent; /* free later if not NULL! */
|
char *uagent; /* free later if not NULL! */
|
||||||
char *accept_encoding; /* free later if not NULL! 08/28/02 jhrg */
|
char *accept_encoding; /* free later if not NULL! */
|
||||||
char *userpwd; /* free later if not NULL! */
|
char *userpwd; /* free later if not NULL! */
|
||||||
char *rangeline; /* free later if not NULL! */
|
char *rangeline; /* free later if not NULL! */
|
||||||
char *ref; /* free later if not NULL! */
|
char *ref; /* free later if not NULL! */
|
||||||
|
@ -525,9 +525,10 @@ struct connectdata {
|
||||||
|
|
||||||
curl_read_callback fread; /* function that reads the input */
|
curl_read_callback fread; /* function that reads the input */
|
||||||
void *fread_in; /* pointer to pass to the fread() above */
|
void *fread_in; /* pointer to pass to the fread() above */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* The end of connectdata. 08/27/02 jhrg */
|
/* The end of connectdata. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Struct to keep statistical and informational data.
|
* Struct to keep statistical and informational data.
|
||||||
|
@ -535,8 +536,8 @@ struct connectdata {
|
||||||
struct PureInfo {
|
struct PureInfo {
|
||||||
int httpcode;
|
int httpcode;
|
||||||
int httpversion;
|
int httpversion;
|
||||||
long filetime; /* If requested, this is might get set. Set to -1 if
|
time_t filetime; /* If requested, this is might get set. Set to -1 if
|
||||||
the time was unretrievable */
|
the time was unretrievable */
|
||||||
long header_size; /* size of read header(s) in bytes */
|
long header_size; /* size of read header(s) in bytes */
|
||||||
long request_size; /* the amount of bytes sent in the request(s) */
|
long request_size; /* the amount of bytes sent in the request(s) */
|
||||||
|
|
||||||
|
@ -660,6 +661,9 @@ struct UrlState {
|
||||||
#ifdef GSSAPI
|
#ifdef GSSAPI
|
||||||
struct negotiatedata negotiate;
|
struct negotiatedata negotiate;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
long authwant; /* inherited from what the user set with CURLOPT_HTTPAUTH */
|
||||||
|
long authavail; /* what the server reports */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -704,9 +708,7 @@ struct UserDefined {
|
||||||
char *set_proxy; /* proxy to use */
|
char *set_proxy; /* proxy to use */
|
||||||
long use_port; /* which port to use (when not using default) */
|
long use_port; /* which port to use (when not using default) */
|
||||||
char *userpwd; /* <user:password>, if used */
|
char *userpwd; /* <user:password>, if used */
|
||||||
|
long httpauth; /* what kind of HTTP authentication to use (bitmask) */
|
||||||
curl_httpauth httpauth; /* what kind of HTTP authentication to use */
|
|
||||||
|
|
||||||
char *set_range; /* range, if used. See README for detailed specification
|
char *set_range; /* range, if used. See README for detailed specification
|
||||||
on this syntax. */
|
on this syntax. */
|
||||||
long followlocation; /* as in HTTP Location: */
|
long followlocation; /* as in HTTP Location: */
|
||||||
|
|
Loading…
Reference in New Issue