From: "T. V. Raman" <raman@users.sf.net>
To: cyd@stupidchicken.com
Cc: emacs-devel@gnu.org
Subject: Re: URL not following some 302 redirects after recent changes
Date: Sun, 11 Feb 2007 17:37:12 -0800 [thread overview]
Message-ID: <17871.50376.794031.836998@gargle.gargle.HOWL> (raw)
In-Reply-To: <87ps99s7wi.fsf@stupidchicken.com>
It would still be nice to have a custom option that tells url to
repeatedly follow redirects -- a la curl's --location and
--location-trusted flags.
>>>>> "Chong" == Chong Yidong <cyd@stupidchicken.com> writes:
Chong> 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.
Chong>
Chong> This seems to be the original intention. There is a
Chong> comment in url-http.el:
Chong>
Chong> ;; If the 301|302 status code is received in
Chong> response to a ;; request other than GET or HEAD, the
Chong> user agent MUST NOT ;; automatically redirect the
Chong> request unless it can be ;; confirmed by the user,
Chong> since this might change the ;; conditions under which
Chong> the request was issued.
Chong>
Chong> So it appears that it is up to the url client to
Chong> resolve a 302 redirect manually.
Chong>
Chong>
Chong>
Chong> _______________________________________________
Chong> Emacs-devel mailing list Emacs-devel@gnu.org
Chong> http://lists.gnu.org/mailman/listinfo/emacs-devel
--
Best Regards,
--raman
Email: raman@users.sf.net
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: tv.raman.tv@gmail.com
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
next prev parent reply other threads:[~2007-02-12 1:37 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
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 [this message]
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=17871.50376.794031.836998@gargle.gargle.HOWL \
--to=raman@users.sf.net \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/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.