all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes]
@ 2006-12-25  0:43 Richard Stallman
  2006-12-25  2:06 ` Magnus Henoch
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2006-12-25  0:43 UTC (permalink / raw)


Does this still fail?  If so, would someone please fix it?
Please ack when it is fixed.

------- Start of forwarded message -------
Date: Wed, 22 Nov 2006 03:35:17 +0100
From: Diane Murray <disumu@x3y2z1.net>
To: emacs-devel@gnu.org
Subject: URL not following some 302 redirects after recent changes
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

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.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes]
  2006-12-25  0:43 [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes] Richard Stallman
@ 2006-12-25  2:06 ` Magnus Henoch
  2006-12-25 23:30   ` Stefan Monnier
  2006-12-26  2:25   ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Magnus Henoch @ 2006-12-25  2:06 UTC (permalink / raw)


Richard Stallman <rms@gnu.org> writes:

> Does this still fail?

Yes.

> If so, would someone please fix it?  Please ack when it is fixed.

A clean way to do it is not immediately obvious to me.  The problem is
that url-http-async-sentinel tries to change the sentinel, which fails
since the sentinel of a process is "bound" to nil during sentinel
execution (which I had forgotten when I wrote this function in the
first place).  I could create a buffer-local variable that tells the
filter function to change the sentinel, but is there a better way to
solve this?

Magnus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes]
  2006-12-25  2:06 ` Magnus Henoch
@ 2006-12-25 23:30   ` Stefan Monnier
  2006-12-26  2:25   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2006-12-25 23:30 UTC (permalink / raw)


>> Does this still fail?
> Yes.
>> If so, would someone please fix it?  Please ack when it is fixed.
> A clean way to do it is not immediately obvious to me.  The problem is
> that url-http-async-sentinel tries to change the sentinel, which fails
> since the sentinel of a process is "bound" to nil during sentinel
> execution (which I had forgotten when I wrote this function in the
> first place).  I could create a buffer-local variable that tells the
> filter function to change the sentinel, but is there a better way to
> solve this?

Or have the sentinel be a function that calls another function (this one
stored in a buffer-local var, or in the process-plist),


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes]
  2006-12-25  2:06 ` Magnus Henoch
  2006-12-25 23:30   ` Stefan Monnier
@ 2006-12-26  2:25   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-12-26  2:25 UTC (permalink / raw)
  Cc: emacs-devel

      The problem is
    that url-http-async-sentinel tries to change the sentinel, which fails
    since the sentinel of a process is "bound" to nil during sentinel
    execution (which I had forgotten when I wrote this function in the
    first place).

The technique of changing the sentinel from within the sentinel seems
somewhat kludgy.  So here is another idea.

url-http-async-sentinel could instead set a flag, so that when it is
called again and sees that flag set, it will call
url-http-end-of-document-sentinel.

Would that work?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-26  2:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-25  0:43 [disumu@x3y2z1.net: URL not following some 302 redirects after recent changes] Richard Stallman
2006-12-25  2:06 ` Magnus Henoch
2006-12-25 23:30   ` Stefan Monnier
2006-12-26  2:25   ` Richard 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.