Hallo allemaal, weet iemand hoe ik met VB.NET een simpele HTML pagina kan ophalen met gebruik van het XMLHTTP component? Ik zoek me helemaal de haren uit me hoofd, maar ik kan het echt niet vinden 
Alvast bedankt. Deze had ik inmiddels al;
Echter gaat ie op Dim objHTTP As New XMLHTTP al de mist in...;
Compiler Error Message: BC30002: Type 'XMLHTTP' is not defined.
Alvast bedankt. Deze had ik inmiddels al;
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| Function GetHtmlPageSource()
Dim URL = "http://www.tweakers.net/"
Dim objHTTP As New XMLHTTP
' open the page in sync mode
objHTTP.Open "GET", URL, False
objHTTP.Send
' check the result of the operation
If objHTTP.Status = "200" Then
GetHtmlPageSource = objHTTP.responseText
End If
End Function |
Echter gaat ie op Dim objHTTP As New XMLHTTP al de mist in...;
Compiler Error Message: BC30002: Type 'XMLHTTP' is not defined.
[ Voor 49% gewijzigd door Verwijderd op 26-03-2004 11:16 ]