* Re: url-retrieve bad handling of redirections
[not found] ` <E1DnTjB-0006jo-NW@fencepost.gnu.org>
@ 2005-07-01 4:03 ` Richard M. Stallman
0 siblings, 0 replies; only message in thread
From: Richard M. Stallman @ 2005-07-01 4:03 UTC (permalink / raw)
Cc: emacs-devel
Adding a new parameter to the callback routine so that it still can have
the original outfile as a parameter. That way you could continue from
the redirect and change the redirected url instead of the original.
What do you think of this change?
Unfortunately it is not practical for me to study the code enough
to tell if this would break anything.
*** url-http.el 28 Jun 2005 17:36:57 -0400 1.16
--- url-http.el 30 Jun 2005 20:59:56 -0400
***************
*** 501,508 ****
(url-request-data url-http-data)
(url-request-extra-headers url-http-extra-headers))
(url-retrieve redirect-uri url-callback-function
! (cons redirect-uri
! (cdr url-callback-arguments)))
(url-mark-buffer-as-dead (current-buffer))))))
(4 ; Client error
;; 400 Bad Request
--- 501,509 ----
(url-request-data url-http-data)
(url-request-extra-headers url-http-extra-headers))
(url-retrieve redirect-uri url-callback-function
! (cons :redirect
! (cons redirect-uri
! url-callback-arguments)))
(url-mark-buffer-as-dead (current-buffer))))))
(4 ; Client error
;; 400 Bad Request
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-01 4:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <42C06E8D.6090505@student.lu.se>
[not found] ` <E1DnL8T-00051w-SA@fencepost.gnu.org>
[not found] ` <42C1A7AA.3000507@student.lu.se>
[not found] ` <E1DnTjB-0006jo-NW@fencepost.gnu.org>
2005-07-01 4:03 ` url-retrieve bad handling of redirections Richard M. Stallman
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.