unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Klaus Straubinger <KSNetz@Arcor.DE>
Subject: Re: tiny changes to url-cookie.el
Date: Mon, 27 Jun 2005 17:01:56 +0200 (CEST)	[thread overview]
Message-ID: <m37jgfrggr.fsf@P131831.SAP.Corp> (raw)
In-Reply-To: <E1DlUy5-0004NH-7k@fencepost.gnu.org>

[url-cookie-retrieve]
> That function does not explain very clearly what it is supposed to do.
> What does the argument PATH mean?

The whole topic is explained in more detail in the document
"http://home.netscape.com/newsref/std/cookie_spec.html" which
is referenced at the beginning of the file url-cookie.el.

In short, the PATH argument is meant to be the local part of the
internet site because sites maybe want to set and retrieve different
cookies for different parts of their site.

> Could you show me some examples of it? Why is it wrong to add ^?

I thought it would require paths starting from "/" (the site's root)
which could not always be true.

But now I have found the root of the problems I had with cookie
retrieval: The function url-http-create-request which builds the HTTP
request calls url-cookie-generate-header-lines already with the wrong
path - but only when dealing with a proxy. It sets a local variable
like this

	 (real-fname (if proxy-obj (url-recreate-url proxy-obj)
		       (url-filename url)))

i.e., if a proxy object is defined, the whole URL is used instead of
only the local part after the host name. The function url-filename
is used to get this part (unfortunately its name does not fit very
well its purpose in this case) and should be applied in the proxy case
as well.

Therefore, I think the two lines above should be replaced by

	 (real-fname (url-filename (if proxy-obj proxy-obj url)))

and no change to url-cookie-retrieve should be necessary. Sorry for the
confusion.

-- 
Klaus Straubinger

  reply	other threads:[~2005-06-27 15:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 15:31 tiny changes to url-cookie.el Klaus Straubinger
2005-06-23 16:54 ` Richard M. Stallman
2005-06-27 15:01   ` Klaus Straubinger [this message]
2005-06-28  4:17     ` Richard M. Stallman
     [not found]   ` <m3d5q7rhgz.fsf@P131831.SAP.Corp>
2005-06-28  7:25     ` Klaus Straubinger
2005-06-29  3:58       ` Richard M. Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m37jgfrggr.fsf@P131831.SAP.Corp \
    --to=ksnetz@arcor.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).