Hallo,
Ik heb het volgende probleem. Ik wil een pagina opvragen en die in me eigen programma tonen (html-code).
Ik doe dit met de volgende code:
Private Sub wsock_Connect()
Dim str As String
str = "get / HTTP/1.1" & vbCrLf & vbCrLf
wsock.SendData str
End Sub
Maar ik krijg het volgende terug:
HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/4.0
Date: Fri, 12 Jul 2002 05:26:21 GMT
Connection: close
Content-Length: 407
Content-Type: text/html
<html><head><title>Error 400</title>
<meta name="robots" content="noindex">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></head>
<body>
<h2>HTTP Error 400</h2>
<p><strong>400 Bad Request</strong></p>
<p>Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications.</p>
</body></html>
Weet iemand wat ik fout doe
alvast bedankt.
Ik heb het volgende probleem. Ik wil een pagina opvragen en die in me eigen programma tonen (html-code).
Ik doe dit met de volgende code:
Private Sub wsock_Connect()
Dim str As String
str = "get / HTTP/1.1" & vbCrLf & vbCrLf
wsock.SendData str
End Sub
Maar ik krijg het volgende terug:
HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/4.0
Date: Fri, 12 Jul 2002 05:26:21 GMT
Connection: close
Content-Length: 407
Content-Type: text/html
<html><head><title>Error 400</title>
<meta name="robots" content="noindex">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></head>
<body>
<h2>HTTP Error 400</h2>
<p><strong>400 Bad Request</strong></p>
<p>Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications.</p>
</body></html>
Weet iemand wat ik fout doe