I'm using ms winsocket control from a vfp 7 application to
serve http requests. Those requests are generated from
javascript in IE 6 html page like:
var g_xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
function SavePost() {
g_xmlReq.open("POST", 'Save',false, "User", "Password" );
g_xmlReq.send( "HeaderData="+DocHead.documentElement.xml.replace(/&/g,'%26') +
"&RowData="+result.documentElement.xml.replace(/&/g,'%26') );
}
g_xmlReq.send() sends a big xml strings as POST requests.
IE sends them in 8 KB packets.
My vfp applications receives them using winsocket.
Unfortunately, sometimes this will not work: my application
receives only first 8 KB packet of HTTP POST packet. No other winsock dataarrival events will occur.
Small data set (less than 8 KB) works OK.
In windows 98 almost every second .send() fails if posting larger data set.
Why ?
Asynchronous sending using iframe works better, but also rarely same data loss occurs.
So i'm thinking about switching from using ms winsocket to SocketQ activeX control from
www.datawizard.net . Is there some othe rsolution ?
Andrus