Im only sending a series of numbers added together in a string.
To demonstrate what is happening download CVMichaels example CGI program
http://www.vbforums.com/showthread.p...&highlight=cgi
(bottom post in thread) and add a couple of lines to write the buffer to a log file e.g
VB Code:
Sub GetFormData() Dim DataLen As Long, sData As String, lBytesRead As Long, rc As Long If UCase(Trim(Environ("REQUEST_METHOD"))) = "POST" Then DataLen = Val(Environ("CONTENT_LENGTH")) If DataLen > 0 Then sData = String(DataLen, 0) rc = ReadFile(hStdIn, ByVal sData, DataLen, lBytesRead, ByVal 0&) sData = Left$(sData, lBytesRead) [B] Open "log.txt" For Append As #29 Write #29, sData Close #29[/B] End If End If PairData sData PairData Environ("QUERY_STRING") End Sub
Now paste 70kb of data into the form field and submit it.
Depending on your server you wont necessarily have all the data in the log file.![]()
Note that it is a string not a file upload.
This is because my application is an ActiveX control that collects lots of data from a measureing instrument and adds it all together as a string.
The Onclick command of the (HTML) button then passes this string value to the (HTML) form and submits it.




Reply With Quote