bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19046: 24.4; url-retrieve-synchronously does not use username/passwo


From: Faried Nawaz
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@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 via email to

[Prev in Thread] Current Thread [Next in Thread]