]> sjero.net Git - wget/commitdiff
[svn] Support the 303 See Other response.
authorhniksic <devnull@localhost>
Fri, 5 Dec 2003 14:37:47 +0000 (06:37 -0800)
committerhniksic <devnull@localhost>
Fri, 5 Dec 2003 14:37:47 +0000 (06:37 -0800)
src/ChangeLog
src/http.c

index d5b86c02c13beaa276361ac130b34eb9935b1b68..e580c25ce5329af95b1ca630c35a3a77ed2d1596 100644 (file)
@@ -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
index a305cbe9a6c386030448d05d5d86b0b5e048909c..609e5fab0a4930e1945afb4c613e7b15d6853810 100644 (file)
@@ -92,8 +92,9 @@ struct cookie_jar *wget_cookie_jar;
 /* Some status code validation macros: */
 #define H_20X(x)        (((x) >= 200) && ((x) < 300))
 #define H_PARTIAL(x)    ((x) == HTTP_STATUS_PARTIAL_CONTENTS)
-#define H_REDIRECTED(x) ((x) == HTTP_STATUS_MOVED_PERMANENTLY  \
-                         || (x) == HTTP_STATUS_MOVED_TEMPORARILY \
+#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