🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #572

Re: TIDWebDav

#572
From: Chris Lawton
Date: Mon, 28 Jan 2008 18:30
52 lines
2584 bytes
Thanks very much for this, we have now got to the point that we are just

unable to add TIdDigestAuthentication objecr to authentication property

for the request under the TIdWebDav object.

We cant create a new TIdDigestAuthentication object because it is an

abstract class, does that mean we need to create our own class based on

this?

We can now send a file using WebDav, but with authentication required on

the server we never get username or password sent to the server.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:479e0f17@newsgroups.borland.com...
>
> "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: <479e1f3f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <479e08de$1@newsgroups.borland.com> <479e0f17@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: "Chris Lawton" <chrisl@gemstv.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <479e08de$1@newsgroups.borland.com> <479e0f17@newsgroups.borland.com>
Subject: Re: TIDWebDav
Date: Mon, 28 Jan 2008 18:30:21 -0000
Lines: 54
Organization: GemsTV
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 195.188.19.226
Message-ID: <479e1f3f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201545023 195.188.19.226 (28 Jan 2008 10:30:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail