* url-http.el: calling the callback function for proxy connections
@ 2007-01-05 9:49 Klaus Straubinger
2007-01-14 23:22 ` Magnus Henoch
[not found] ` <87odoyvwe6.fsf@freemail.hu>
0 siblings, 2 replies; 3+ messages in thread
From: Klaus Straubinger @ 2007-01-05 9:49 UTC (permalink / raw)
The function url-http-activate-callback calls the callback function
after completing the URL retrieval. If the connection had been through
a proxy, the variable url-current-object contains only the proxy
reference.
All callback functions that want to evaluate or display which URL had
been retrieved are not working properly when using the variable
url-current-object or the function url-view-url that also uses
url-current-object.
My proposal is to do
(let ((url-current-object url-http-target-url))
around
(apply url-callback-function url-callback-arguments)
within the function url-http-activate-callback as already done in the
function url-http-handle-cookies.
This would, for example, make HTTP-EQUIV redirects handled by the W3
package work even for proxy connections.
--
Klaus Straubinger
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: url-http.el: calling the callback function for proxy connections
2007-01-05 9:49 url-http.el: calling the callback function for proxy connections Klaus Straubinger
@ 2007-01-14 23:22 ` Magnus Henoch
[not found] ` <87odoyvwe6.fsf@freemail.hu>
1 sibling, 0 replies; 3+ messages in thread
From: Magnus Henoch @ 2007-01-14 23:22 UTC (permalink / raw)
Klaus Straubinger <KSNetz@UseNet.ArcorNews.DE> writes:
> The function url-http-activate-callback calls the callback function
> after completing the URL retrieval. If the connection had been through
> a proxy, the variable url-current-object contains only the proxy
> reference.
> [...]
Thanks for the report, and sorry about the delay... I fixed the
problem in a different way, making url-current-object always be the
object retrieved. Does the current CVS version work for you?
Magnus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: url-http.el: calling the callback function for proxy connections
[not found] ` <87odoyvwe6.fsf@freemail.hu>
@ 2007-01-17 13:00 ` Klaus Straubinger
0 siblings, 0 replies; 3+ messages in thread
From: Klaus Straubinger @ 2007-01-17 13:00 UTC (permalink / raw)
Magnus Henoch <mange@freemail.hu> wrote:
> I fixed the problem in a different way, making url-current-object
> always be the object retrieved.
That is a very sensible approach, in my opinion.
Maybe it could be possible now to get rid of the variable
url-http-target-url. It had been introduced because for proxy
connections url-current-object does not contain the object to be
retrieved, as far as I remember.
> Does the current CVS version work for you?
Yes, now it works fine.
--
Klaus Straubinger
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-17 13:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-05 9:49 url-http.el: calling the callback function for proxy connections Klaus Straubinger
2007-01-14 23:22 ` Magnus Henoch
[not found] ` <87odoyvwe6.fsf@freemail.hu>
2007-01-17 13:00 ` Klaus Straubinger
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.