Article View: borland.public.cppbuilder.internet.socket
Article #407Re: TIDWebDav
From: Remy Lebeau (TeamB)
Date: Wed, 30 Jan 2008 17:57
Date: Wed, 30 Jan 2008 17:57
30 lines
2437 bytes
2437 bytes
"Chris Lawton" <chrisl@gemstv.co.uk> wrote in message news:47a04bac$1@newsgroups.borland.com... > But we are still having problems setting the userid and password > for the authentication in the base class. You are not supposed to be setting them in the Authentication class directly. Set them in TIdWebDav's Request property only, and they will be copied into the Authentication class internally when needed. > We have tried setting TIdWebDav->Request->Username That is the way to go. > still have no authentication infomation passed to the server. Then the server is likely not asking for Digest authentication to begin with. When a request requires credentials, the server returns a 401 response back, specifying the authentication schemes that the server supports. What values are actually being reported in the TIdWebDav->Response->WWWAuthenticate property? TIdHTTP/TIdWebDav uses that property to look in the list of registered TIdAuthentication-derived classes to find matches. If a match is found, the OnSelectAuthorization and OnAuthorization events are triggered and the original request is tried again with the new credentials. Otherwise, TIdHTTP/TIdWebDav aborts the request and returns an error to the calling application. Gambit
Technical Details
Message-ID:
<47a0ba66$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<479e08de$1@newsgroups.borland.com> <479e0f17@newsgroups.borland.com> <479e1f3f$1@newsgroups.borland.com> <47a01b03$1@newsgroups.borland.com> <47a04bac$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> <479e0f17@newsgroups.borland.com> <479e1f3f$1@newsgroups.borland.com> <47a01b03$1@newsgroups.borland.com> <47a04bac$1@newsgroups.borland.com> Subject: Re: TIDWebDav Date: Wed, 30 Jan 2008 09:57:40 -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: <47a0ba66$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1201715814 207.178.157.90 (30 Jan 2008 09:56:54 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail