Question about the Internet Transfer Control (Version 6)
- From: EnzoNZ@xxxxxxxxx
- Date: 19 Dec 2006 16:48:41 -0800
I am trying to do something that should be simple but can not figure
out what is going on. I'm using VB 6 and the Internet Transfer Control
Version 6 (SP4).
I have an example where a simple .OpenURL(address) does not seem to
work.
This is the code for a simple test case:
Private Sub Command1_Click()
Dim Address As String
Dim Source As String
Address = "http://www.autocheck.com"
Source = Inet1.OpenURL(Address)
text1.Text = Source
End Sub
This works as expected for just about any other site I try except
www.autocheck.com where I get:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
</BODY></HTML>
If I use this same URL from a web browser (e.g. Internet Explorer) then
it works fine.
Any help or ideas appreciated.
Cheers
.
- Prev by Date: How do I stop the WebBrowser control evaluating special characters?
- Previous by thread: How do I stop the WebBrowser control evaluating special characters?
- Index(es):