GNU bug report logs - #19046
24.4; url-retrieve-synchronously does not use username/password in URL

Previous Next

Package: emacs;

Reported by: Faried Nawaz <faried <at> gmail.com>

Date: Thu, 13 Nov 2014 17:37:01 UTC

Severity: normal

Tags: confirmed, fixed

Found in version 24.4

Fixed in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Faried Nawaz <faried <at> gmail.com>
To: 19046 <at> debbugs.gnu.org
Cc: mah <at> 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
If I do

 (url-generic-parse-url "http://user:pass <at> 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 <at> 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.




This bug report was last modified 9 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.