unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Faried Nawaz <faried@gmail.com>
To: 19046@debbugs.gnu.org
Cc: mah@everybody.org
Subject: bug#19046: 24.4; url-retrieve-synchronously does not use username/password in URL
Date: Thu, 13 Nov 2014 22:06:39 +0500	[thread overview]
Message-ID: <CAMJZR9YSG3q6_bG3bgq0nzt8FpyHJW6RKR-peXL8Esxc26ZJhA@mail.gmail.com> (raw)

If I do

 (url-generic-parse-url "http://user:pass@127.0.0.1:8442/")

it returns a struct with the username and password fields properly
parsed.  However, if I do

(url-retrieve-synchronously "http://user:pass@127.0.0.1:8442/")

it seems to ignore the embedded username/password, and I have to work
around that by doing something like

(let ((my-auth '(("some realm" . "base64-encoded-field")))
      (url-basic-auth-storage 'my-auth))
  (url-retrieve-synchronously "http://127.0.0.1:8442/"))

I could not readily find a function to use the embedded
username/password in the URL without assigning to
url-basic-auth-storage.  (If there is one, I think it should be better
documented.)


Thanks,

Faried.





             reply	other threads:[~2014-11-13 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 17:06 Faried Nawaz [this message]
2015-12-25 19:08 ` bug#19046: 24.4; url-retrieve-synchronously does not use username/password in URL Lars Ingebrigtsen
2015-12-25 19:22 ` Lars Ingebrigtsen
2015-12-25 19:36   ` John Wiegley
2015-12-25 19:38     ` Lars Ingebrigtsen

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=CAMJZR9YSG3q6_bG3bgq0nzt8FpyHJW6RKR-peXL8Esxc26ZJhA@mail.gmail.com \
    --to=faried@gmail.com \
    --cc=19046@debbugs.gnu.org \
    --cc=mah@everybody.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 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).