Hon Yuen. Ng Guest
|
Posted: Wed Apr 14, 2004 9:33 am Post subject: How do handle IdHTTP.OnAuthorization |
|
|
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
|
|