hy!

i want to get a massage from dbase in a vb-project.
wenn i show the html made by dbase in a browser it works but in vb i got the
error:
The chunk length was not valid.

my source:

Dim viewer As New OpenNETCF.Windows.Forms.HTMLViewer
Dim reader As StreamReader
Dim Text As String
Dim Text2 As String
Dim request As WebRequest
Dim response As WebResponse
MsgBox("variablen deklariert")
viewer.ParentForm = Me
viewer.CreateHTMLControl()

viewer.DisplayText("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
request =
WebRequest.Create("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
response = request.GetResponse()
reader = New StreamReader(response.GetResponseStream())
Text = reader.ReadToEnd()
MsgBox(Text)


what is wrong?

Re: The chunk length was not valid by Young

Young
Wed Dec 03 11:28:09 CST 2003

You may want to search the archives on this issue. There has been numerous
postings which includes the following:

* Not setting the ContentLength field in the HttpWebRequest object.
* Setting the AllowWriteStreamBuffering field to true in the HttpWebRequest
object.
* Using .Net CF SP2 beta.

Here is a thread that you can also check:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22chunk+length%22+compactframework



"Markus Posch" <m@po.at> wrote in message
news:eVciIibuDHA.2520@TK2MSFTNGP10.phx.gbl...
> hy!
>
> i want to get a massage from dbase in a vb-project.
> wenn i show the html made by dbase in a browser it works but in vb i got
the
> error:
> The chunk length was not valid.
>
> my source:
>
> Dim viewer As New OpenNETCF.Windows.Forms.HTMLViewer
> Dim reader As StreamReader
> Dim Text As String
> Dim Text2 As String
> Dim request As WebRequest
> Dim response As WebResponse
> MsgBox("variablen deklariert")
> viewer.ParentForm = Me
> viewer.CreateHTMLControl()
>
>
viewer.DisplayText("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> request =
>
WebRequest.Create("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> response = request.GetResponse()
> reader = New StreamReader(response.GetResponseStream())
> Text = reader.ReadToEnd()
> MsgBox(Text)
>
>
> what is wrong?
>
>



Re: The chunk length was not valid by Markus

Markus
Thu Dec 04 05:49:44 CST 2003

thx for your answer.
i don´t find any download for cf sp2
every link i found is linked with microsoft and doesn´t work

greets
markus
(sorry my english is not very good)

"Young Cho" <REMOVE_THIS_youngcho_sd@hotmail.com> schrieb im Newsbeitrag
news:%23nt3TLcuDHA.2352@TK2MSFTNGP09.phx.gbl...
> You may want to search the archives on this issue. There has been
numerous
> postings which includes the following:
>
> * Not setting the ContentLength field in the HttpWebRequest object.
> * Setting the AllowWriteStreamBuffering field to true in the
HttpWebRequest
> object.
> * Using .Net CF SP2 beta.
>
> Here is a thread that you can also check:
>
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22chunk+length%22+compactframework
>
>
>
> "Markus Posch" <m@po.at> wrote in message
> news:eVciIibuDHA.2520@TK2MSFTNGP10.phx.gbl...
> > hy!
> >
> > i want to get a massage from dbase in a vb-project.
> > wenn i show the html made by dbase in a browser it works but in vb i got
> the
> > error:
> > The chunk length was not valid.
> >
> > my source:
> >
> > Dim viewer As New OpenNETCF.Windows.Forms.HTMLViewer
> > Dim reader As StreamReader
> > Dim Text As String
> > Dim Text2 As String
> > Dim request As WebRequest
> > Dim response As WebResponse
> > MsgBox("variablen deklariert")
> > viewer.ParentForm = Me
> > viewer.CreateHTMLControl()
> >
> >
>
viewer.DisplayText("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> > request =
> >
>
WebRequest.Create("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> > response = request.GetResponse()
> > reader = New StreamReader(response.GetResponseStream())
> > Text = reader.ReadToEnd()
> > MsgBox(Text)
> >
> >
> > what is wrong?
> >
> >
>
>



Re: The chunk length was not valid by Young

Young
Thu Dec 04 10:18:08 CST 2003

.Net CF SP 2 is in beta. It is supposed to be released before the end of
the year. If you want to sign up for the beta and use it before the
release, search the archives for information on signing up for the beta
program.

Young.

"Markus Posch" <m@po.at> wrote in message
news:edjL5yluDHA.2260@TK2MSFTNGP09.phx.gbl...
> thx for your answer.
> i don´t find any download for cf sp2
> every link i found is linked with microsoft and doesn´t work
>
> greets
> markus
> (sorry my english is not very good)
>
> "Young Cho" <REMOVE_THIS_youngcho_sd@hotmail.com> schrieb im Newsbeitrag
> news:%23nt3TLcuDHA.2352@TK2MSFTNGP09.phx.gbl...
> > You may want to search the archives on this issue. There has been
> numerous
> > postings which includes the following:
> >
> > * Not setting the ContentLength field in the HttpWebRequest object.
> > * Setting the AllowWriteStreamBuffering field to true in the
> HttpWebRequest
> > object.
> > * Using .Net CF SP2 beta.
> >
> > Here is a thread that you can also check:
> >
>
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22chunk+length%22+compactframework
> >
> >
> >
> > "Markus Posch" <m@po.at> wrote in message
> > news:eVciIibuDHA.2520@TK2MSFTNGP10.phx.gbl...
> > > hy!
> > >
> > > i want to get a massage from dbase in a vb-project.
> > > wenn i show the html made by dbase in a browser it works but in vb i
got
> > the
> > > error:
> > > The chunk length was not valid.
> > >
> > > my source:
> > >
> > > Dim viewer As New OpenNETCF.Windows.Forms.HTMLViewer
> > > Dim reader As StreamReader
> > > Dim Text As String
> > > Dim Text2 As String
> > > Dim request As WebRequest
> > > Dim response As WebResponse
> > > MsgBox("variablen deklariert")
> > > viewer.ParentForm = Me
> > > viewer.CreateHTMLControl()
> > >
> > >
> >
>
viewer.DisplayText("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> > > request =
> > >
> >
>
WebRequest.Create("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> > > response = request.GetResponse()
> > > reader = New StreamReader(response.GetResponseStream())
> > > Text = reader.ReadToEnd()
> > > MsgBox(Text)
> > >
> > >
> > > what is wrong?
> > >
> > >
> >
> >
>
>