Browsing to a CUPS web page with authentication pre-supplied
Michael Sweet
mike at easysw.com
Tue Jan 9 05:17:21 PST 2007
Opher Shachar wrote:
> Hi all,
> We want to place a link to arbitrary CUPS web pages in our application's UI. Some of these pages require authentication.
> Can authentication information be supplied in the url or http headers?
Yes - for URLs use:
http://user:pass@hostname/...
If you have control over HTTP headers, the Authorization field
contains the authentication information, however you generally can't
just set them, you need to respond to the challenge's WWW-Authenticate
header...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
More information about the cups
mailing list