Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data loss using MSWINSOCK as http server
Message
From
02/09/2002 12:00:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Data loss using MSWINSOCK as http server
Miscellaneous
Thread ID:
00695961
Message ID:
00695961
Views:
54
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
Reply
Map
View

Click here to load this message in the networking platform