BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 10 (BDS 2005) / Basic Auth ... failure???

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
dk_sz
Guest





PostPosted: Thu Dec 01, 2005 4:02 pm    Post subject: Indy 10 (BDS 2005) / Basic Auth ... failure??? Reply with quote



In OnAuthorization I set
Username/Password + Handled to True...
(anything else I need to do? I think not?)

Yet, in my tests, I seem to get rejected
(wrong username/password). This seems odd
as when I am using e.g. FireFox it works fine.

I know the fault is probably my own...
But any ideas of what might be wrong?


The Page I try to access if Apache/protected like this:

AuthType Basic
AuthName "Pictures"
AuthGroupFile /dev/null
AuthUserFile /i/am/not/telling/the/file/path
<Limit GET>
require valid-user
</Limit>



best regards
Thomas Schulz



Back to top
dk_sz
Guest





PostPosted: Thu Dec 01, 2005 7:07 pm    Post subject: Re: Indy 10 (BDS 2005) / Basic Auth ... failure??? Reply with quote



However, doing this:

if (FAuthUsername <> '') then
begin
FHttp.Request.BasicAuthentication := True;
FHTTP.Request.Username := FAuthUsername;
FHTTP.Request.Password := FAuthPassword;
end;

before Get seems to work.

best regards
Thomas


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.