W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Doing basic authentication

From: Marco Ariano <marco.ariano@pipercreek.com>
Date: Thu, 17 Jun 1999 15:34:46 -0600
Message-ID: <376969F5.3040C83E@pipercreek.com>
To: www-lib@w3.org
Dear LibWWW-heads:

I'm writing a very simple HTTP 1.1 client Windows using libwww.  I need
to handle basic authentication.  My app has no user interface and every
request will have the same authentication.  After browsing through the
code, documentation and examples, here's what I think I need to do.  I'd
appreciate it very much if someone would let me know if I'm on the right
track or way off base.

I'm using a default profile so HTCredentialsFilter is registered for
me.  I think all I need to do is call HTRequest_addCredentials() for
every request.  I'll generate the arguments using code borrowed from
BOOL basic_credentials() as found in HTAABrow.c.

I have no idea if I have to register any other before or after filters.

Make any sense or am I demonstrating my lack of understanding?

thanks very much,
Marco

P.S. I'm finding it hard to get going with this stuff.  The
documentation seems to go from high level explanations to the .h files
with very little in between.  I _know_ this library is packed with all
kinds of goodies and is extremely flexible but it's pretty challenging
to figure out how to put the pieces together or throw in some of your
own.  Once you grok the thing, I'm sure you can fly.  The various
samples are very helpful.  (And maybe it's just me...)
-- 
Marco Ariano                    mailto:marco.ariano@pipercreek.com
Piper Creek Software Ltd.       ph:    1.403.234.8686
Calgary Alberta Canada          fax:   1.403.237.9644
Received on Thursday, 17 June 1999 17:35:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT