all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Subject: Re: URL not following some 302 redirects after recent changes
Date: Sat, 20 Jan 2007 16:30:37 -0500	[thread overview]
Message-ID: <87ps99s7wi.fsf@stupidchicken.com> (raw)
In-Reply-To: 871wnw2opm.fsf@x3y2z1.net

Diane Murray <disumu@x3y2z1.net> writes:

> Sometime after 2006-10-26 URL redirects stopped working correctly
> (Emacs CVS of 2006-09-19 and 2006-10-26 works, 2006-10-31 and
> 2006-11-19 don't work), perhaps due to changes made in revision 1.36
> of url-http.el.
>
> For example, <http://www.cliki.net/cliki> returns the following
> headers, but `url-retrieve' runs the callback function instead of
> first retrieving the new location:
>
> HTTP/1.0 302 Redirected
> Date: Fri, 17 Nov 2006 17:50:59 GMT
> Server: Araneida/0.84
> Connection: close
> Content-Type: text/html
> Last-Modified: Fri, 17 Nov 2006 17:50:59 GMT
> Location: http://www.cliki.net/CLiki
> Pragma: no-cache
> Expires: Fri, 30 Oct 1998 14:19:41 GMT
>
> The above-mentioned working versions retrieve the redirected URL
> correctly.

This seems to be the original intention.  There is a comment in
url-http.el:

    ;; If the 301|302 status code is received in response to a
    ;; request other than GET or HEAD, the user agent MUST NOT
    ;; automatically redirect the request unless it can be
    ;; confirmed by the user, since this might change the
    ;; conditions under which the request was issued.

So it appears that it is up to the url client to resolve a 302
redirect manually.

  reply	other threads:[~2007-01-20 21:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-22  2:35 URL not following some 302 redirects after recent changes Diane Murray
2007-01-20 21:30 ` Chong Yidong [this message]
2007-01-22  6:04   ` Richard Stallman
2007-01-22 15:02     ` Stefan Monnier
2007-01-23  2:07       ` Richard Stallman
2007-01-24 16:05   ` Stefan Monnier
2007-02-12  1:37   ` T. V. Raman
2007-01-31 13:44 ` Diane Murray
2007-02-01  0:21   ` Chong Yidong
2007-02-02 11:26     ` Richard Stallman
2007-02-02 15:37       ` Stefan Monnier
2007-02-02 15:45         ` David Kastrup
2007-02-03 11:19           ` Richard Stallman
2007-02-03 11:42             ` David Kastrup
2007-02-03 11:19         ` Richard Stallman
2007-02-02 17:09       ` Chong Yidong
2007-02-03 11:19         ` Richard Stallman
2007-02-22  1:38         ` Kim F. Storm
2007-02-22  1:43           ` Chong Yidong
2007-02-22  9:26             ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ps99s7wi.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.