mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Support the 303 See Other response.
This commit is contained in:
parent
f599e493f3
commit
bf8350af62
@ -1,3 +1,9 @@
|
||||
2003-12-05 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* http.c (H_REDIRECTED): Respect the HTTP/1.1 "303 See Other"
|
||||
response code.
|
||||
Suggested by Dan Razzell.
|
||||
|
||||
2003-11-30 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* retr.c (fd_read_body): Report the amount of data *written* as
|
||||
|
@ -94,6 +94,7 @@ struct cookie_jar *wget_cookie_jar;
|
||||
#define H_PARTIAL(x) ((x) == HTTP_STATUS_PARTIAL_CONTENTS)
|
||||
#define H_REDIRECTED(x) ((x) == HTTP_STATUS_MOVED_PERMANENTLY \
|
||||
|| (x) == HTTP_STATUS_MOVED_TEMPORARILY \
|
||||
|| (x) == HTTP_STATUS_SEE_OTHER \
|
||||
|| (x) == HTTP_STATUS_TEMPORARY_REDIRECT)
|
||||
|
||||
/* HTTP/1.0 status codes from RFC1945, provided for reference. */
|
||||
@ -108,8 +109,9 @@ struct cookie_jar *wget_cookie_jar;
|
||||
#define HTTP_STATUS_MULTIPLE_CHOICES 300
|
||||
#define HTTP_STATUS_MOVED_PERMANENTLY 301
|
||||
#define HTTP_STATUS_MOVED_TEMPORARILY 302
|
||||
#define HTTP_STATUS_SEE_OTHER 303 /* from HTTP/1.1 */
|
||||
#define HTTP_STATUS_NOT_MODIFIED 304
|
||||
#define HTTP_STATUS_TEMPORARY_REDIRECT 307
|
||||
#define HTTP_STATUS_TEMPORARY_REDIRECT 307 /* from HTTP/1.1 */
|
||||
|
||||
/* Client error 4xx. */
|
||||
#define HTTP_STATUS_BAD_REQUEST 400
|
||||
|
Loading…
Reference in New Issue
Block a user