G
Guest
Hello
i have a problem with HTTPWebRequest and WM2003. The following cod
runs fine on my pc. On the PPC with WM2003 or the emulator the code wil
not work ("The chunk length was not valid")
Have anybody an idea
Thx: - Reinhard
Public Function GetHTMLPage(ByVal URL As String) As Strin
Dim sResult As Strin
Dim objRequest As HttpWebReques
Dim objResponse As HttpWebRespons
Tr
objRequest = System.Net.HttpWebRequest.Create(URL
objRequest.Method = "GET
objRequest.Timeout = 6000
objResponse = objRequest.GetResponse(
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(objResponse.GetResponseStream(), System.Text.Encoding.Default
'this will NOT work on WM200
sResult = sr.ReadToEnd(
sr.Close(
objResponse.Close(
Return sResul
Catch ex As WebExceptio
MsgBox("Web: " & ex.Message
txtResults.Text = "
objResponse = Nothin
objRequest = Nothin
Catch ex As System.Exceptio
MsgBox("System: " & ex.Message
txtResults.Text = "
objResponse = Nothin
objRequest = Nothin
End Tr
End Functio
i have a problem with HTTPWebRequest and WM2003. The following cod
runs fine on my pc. On the PPC with WM2003 or the emulator the code wil
not work ("The chunk length was not valid")
Have anybody an idea
Thx: - Reinhard
Public Function GetHTMLPage(ByVal URL As String) As Strin
Dim sResult As Strin
Dim objRequest As HttpWebReques
Dim objResponse As HttpWebRespons
Tr
objRequest = System.Net.HttpWebRequest.Create(URL
objRequest.Method = "GET
objRequest.Timeout = 6000
objResponse = objRequest.GetResponse(
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(objResponse.GetResponseStream(), System.Text.Encoding.Default
'this will NOT work on WM200
sResult = sr.ReadToEnd(
sr.Close(
objResponse.Close(
Return sResul
Catch ex As WebExceptio
MsgBox("Web: " & ex.Message
txtResults.Text = "
objResponse = Nothin
objRequest = Nothin
Catch ex As System.Exceptio
MsgBox("System: " & ex.Message
txtResults.Text = "
objResponse = Nothin
objRequest = Nothin
End Tr
End Functio