Article ID: 176419
Article Last Modified on 12/10/2003
<HTML>
<BODY>
<FORM NAME="MyForm">
<INPUT TYPE="BUTTON" NAME="MyButton" VALUE="Test Me with OpenUrl">
Enter URL you want to access:<INPUT TYPE="TEXT" NAME="MyText" VALUE="">
<INPUT TYPE="BUTTON" NAME="Get" VALUE="Test Me with Get">
</FORM>
<OBJECT ID="Inet1"
CLASSID="CLSID:48E59293-9880-11CF-9754-00AA00C00908">
</OBJECT>
<SCRIPT Language="VBScript">
<!--
Sub MyButton_onClick()
Response = Inet1.OpenURL(MyForm.MyText.Value)
If Inet1.ResponseCode <> 0 Then
MsgBox ("ErrorCode: " & Inet1.ResponseCode)
MsgBox ("Error: " & Inet1.ResponseInfo)
Else
MsgBox(Response)
End If
End Sub
Sub Get_onClick()
Response = Inet1.Execute(MyForm.MyText.Value, "GET")
If Inet1.ResponseCode <> 0 Then
MsgBox ("ErrorCode: " & Inet1.ResponseCode)
MsgBox ("Error: " & Inet1.ResponseInfo)
End If
End Sub
Sub Inet1_StateChanged(State)
Select Case State
' ... Other cases not shown.
Case 12
Dim strData: StrData = ""
Dim vtData
Dim bDone : bDone = 0
' Get first chunk.
vtData = Inet1.GetChunk(10240, icString)
Do While bDone = 0
strData = strData & vtData
' Get next chunk.
vtData = Inet1.GetChunk(10240, icString)
If Len(vtData) = 0 Then
bDone = 1
End If
Loop
MsgBox strData
End Select
end sub
-->
</SCRIPT>
</BODY>
</HTML>
176420 : BUG: InternetSetOption Does Not Set Timeout Values
Additional query words: kbdsi kbDSupport kbVBpkbVBp500 kbVBp600 kbINetDev kbIE400
Keywords: kbbug kbfix KB176419