| Product: Distinct VIT | Topic: HTTP | Last updated: 3/17/2008 |
| |
| Q.: Can I stop the control authentication dialog box in HTTP from being displayed? |
| A.: Yes, you can do this by setting the ShowUI property to false. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: HTTP | Last updated: 3/29/2008 |
| |
| Q.: How do I handle an authentication error directly from my application without popping up the dialog box that is built into the ActiveX? |
| A.: You must first set the ShowUI property to False to inhibit the built-in authentication dialog box. Then you must check for the value in the LastResults property. If this value is 401 this means that User Authentication has failed and your application can handle the situation accordingly. |
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: HTTP | Last updated: 3/17/2008 |
| |
| Q.: How do I specify the HTTP headers such a cookie header? |
A.: To add additional header fields in the http request use the UserAgent property. For example:
MyHeader = "Mozilla" + Chr(13) + Chr(10) + "My Field: MyData"
Httpctrl.UserAgent = MyHeader
|
| |
Do you find this information useful ? Yes No Not Sure |
|
| Product: Distinct VIT | Topic: HTTP | Last updated: 3/17/2008 |
| |
| Q.: I would like my application to take over control when URL sites require user authentication, and use my own user interface to take any user input. How do I do this? |
A.: You can do this by using the AddUserAuthInfo method to pass the username, password and URL combination to the local cache. Whenever the URL is accessed this information is used for authentication and the ActiveX authentication dialog box will not be displayed.
|
| |
Do you find this information useful ? Yes No Not Sure |
|