We have been having problems lately with AT&T Tilts not sending all the data to our server and we would like to check to see that the amount of data sent to the server equals the length of the data we wrote to the stream.
We are using the WebRequest and WebResponse along with a BinaryFile to write the data. Is there a way that I can determine exactly how many bytes reached the server?
Here's our current code (snippet):
Request.New1( pString )
Request.ContentType = "application/x-www-form-urlencoded"
Request.ContentLength = StrLength( "fake=1&values=" & pValues )
Request.Method = "POST"
Request.TimeOut = 30000 '30000 milliseconds = 30 seconds
bin.New1(Request.GetStream,True)
gBuffer() = bin.StringToBytes("fake=1&values=" & pValues )
bufLength = ArrayLen(gBuffer())
bin.WriteBytes (gBuffer())
Response.New1
Response.Value = Request.GetResponse
iResponse = Response.GetString
Response.close
We are using the WebRequest and WebResponse along with a BinaryFile to write the data. Is there a way that I can determine exactly how many bytes reached the server?
Here's our current code (snippet):
Request.New1( pString )
Request.ContentType = "application/x-www-form-urlencoded"
Request.ContentLength = StrLength( "fake=1&values=" & pValues )
Request.Method = "POST"
Request.TimeOut = 30000 '30000 milliseconds = 30 seconds
bin.New1(Request.GetStream,True)
gBuffer() = bin.StringToBytes("fake=1&values=" & pValues )
bufLength = ArrayLen(gBuffer())
bin.WriteBytes (gBuffer())
Response.New1
Response.Value = Request.GetResponse
iResponse = Response.GetString
Response.close