| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: 424 w/ http request |
| User441 Posts: 3 Member Since: 11/05/01 |
posted November 5, 2001 5:27 PM I've referenced the dart objects in VBA's reference area. I'm looking at using the get http command froma procedure in Access. The 424 error is preventing me from doing it. I also want to pass a username and password as well. Does anyone have an example of this? The documentation doesn't provide an example that uses the user and pass values. Thanks - David |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted November 6, 2001 11:03 AM Hi David, What does the line of code look like that causes the error? To use username and password, just use the last two parameters of the Get method: Http1.Get Content, , UserName, Password -ken K M Drake Dart Tech Support |
| User441 Posts: 3 Member Since: 11/05/01 |
posted November 6, 2001 11:48 AM I get a 424 error with this code, taken right from the help file... Private Sub Command0_Click() On Error GoTo OnError ' use intrinsic error handling ' Get a web page from a web server Dim Orderform As String http1.Timeout = 20000 'give it 20 seconds to complete http1.Url = "http://www.dart.com/" http1.Get Orderform MsgBox (Orderform) 'The HTML code for the web site appears in the msgbox box Exit Sub OnError: ' Any error jumps here Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description MsgBox (Err.Number) I have a form with 2 controls on it. One is the http control from you guys and the other is a command button that I click to launch this. Thanks David PS: is it possible to call this control and use it w/o including the control on a form. eg) in the midst of a vba module w/o reference to any form? |
| User441 Posts: 3 Member Since: 11/05/01 |
posted November 6, 2001 12:17 PM The error occurs on the first line of code being executed. I don't have a proxy on my side that requires a username and password. The website I'm retrieving from requires a username and password. Can I still use the UserName and Password options? How do I set their values? Thanks, David |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted November 6, 2001 2:57 PM Hi David, I just tried your code and it worked ok for me. Are you sure the control is named http1 on your form? This is what the Username and Password parameters of the Get method are for (not Proxy Authorization). -ken K M Drake Dart Tech Support |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|