unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19046: 24.4; url-retrieve-synchronously does not use username/password in URL
@ 2014-11-13 17:06 Faried Nawaz
  2015-12-25 19:08 ` Lars Ingebrigtsen
  2015-12-25 19:22 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Faried Nawaz @ 2014-11-13 17:06 UTC (permalink / raw)
  To: 19046; +Cc: mah

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.





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

end of thread, other threads:[~2015-12-25 19:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13 17:06 bug#19046: 24.4; url-retrieve-synchronously does not use username/password in URL Faried Nawaz
2015-12-25 19:08 ` Lars Ingebrigtsen
2015-12-25 19:22 ` Lars Ingebrigtsen
2015-12-25 19:36   ` John Wiegley
2015-12-25 19:38     ` Lars Ingebrigtsen

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).