Article View: borland.public.cppbuilder.internet.socket
Article #569Re: TIDWebDav
From: Remy Lebeau (TeamB)
Date: Mon, 28 Jan 2008 17:22
Date: Mon, 28 Jan 2008 17:22
30 lines
1964 bytes
1964 bytes
"Chris Lawton" <chrisl@gemstv.co.uk> wrote in message
news:479e08de$1@newsgroups.borland.com...
> Can anyone tell me (ideally with some quick example code cos
> I'm a bit slow at this), how to add digest authentication to WebDav?
#include IdAuthenticationDigest.hpp into your code. Since you are in a C++
environment, you may also have to call RegisterAuthenticationMethod()
manually at program startup as well:
RegisterAuthenticationMethod("Digest",
__classid(TIdDigestAuthentication));
> How do we tell the libraries to use Digest
It does so automatically after TIdAuthenticationDigest has been registered.
> then get the username and password into that digest authentication method?
The same way you get username/password in any authentication - via the
Request->Username and Request->Password properties.
> We are finding things that suggest we need to add a TIdAutheticationDigest
> object to the TIdWebDav object.
Yes, that is exactly what is needed.
Gambit
Technical Details
Message-ID:
<479e0f17@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<479e08de$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,37a4fcffa61d5311 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <479e08de$1@newsgroups.borland.com> Subject: Re: TIDWebDav Date: Mon, 28 Jan 2008 09:22:13 -0800 Lines: 32 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 207.178.157.90 Message-ID: <479e0f17@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1201540887 207.178.157.90 (28 Jan 2008 09:21:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail