all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to non-interactively provide auth info to URL, and how to force  URL to use HTTP AUTH
@ 2009-12-15 20:02 Edward O'Connor
  2009-12-16  0:36 ` Juri Linkov
  2009-12-16  6:30 ` Ari Roponen
  0 siblings, 2 replies; 4+ messages in thread
From: Edward O'Connor @ 2009-12-15 20:02 UTC (permalink / raw)
  To: emacs-devel

Hi,

I've made a lot of use out of url.el over the years, and it's for the
most part been a nice experience. But I haven't been able to wrap my
brain around how to use HTTP AUTH in a nice-to-the-user way.

Here's the scenario: I work on several elisp clients for various APIs
which are exposed via HTTP and make use of HTTP AUTH. When a developer
uses my library, they supply the relevant auth info to my library
explicitly. I would then like to invoke url-retreive and have the
resulting request use basic (or digest) auth with the auth info I
already have, *without prompting the user* for a username or password. I
keep failing to figure out how to do this.

I'd really rather not resort to shelling out to curl, but this is *very
easy* to do with curl (a simple "curl -u user:pass url-to-api-call" will
do), and it's not at all clear how to do it with url.el.

Any suggestions on how to proceed would be most welcome!


Thanks,
Ted




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

end of thread, other threads:[~2009-12-16  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15 20:02 How to non-interactively provide auth info to URL, and how to force URL to use HTTP AUTH Edward O'Connor
2009-12-16  0:36 ` Juri Linkov
2009-12-16  8:56   ` Andreas Schwab
2009-12-16  6:30 ` Ari Roponen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.