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 

How do handle IdHTTP.OnAuthorization

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





PostPosted: Wed Apr 14, 2004 9:33 am    Post subject: How do handle IdHTTP.OnAuthorization Reply with quote



Hi

When users are accessing website that requires login (using Head()), I'll
ask for their input inside the IdHTTP.OnAuthorization event. From the user's
input, I'll set the username and password inside the Authentication object.
Finally, I'll set Handled to true.

From the result i get, I can not login to the site after all the settings.
However, I can login to the site if i try to call the Head() again (This
will be the second time i call this function, the first one will invoke the
OnAuthorization event).

May i know where i did wrong?

Thanks in advance.
From,
Hon Yuen, Ng



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.