|
lr录制windows sock c#
执行:
lrs_send("socket12", "buf33", LrsLastArg);
lrs_create_socket("socket14", "TCP", "RemoteHost=172.16.2.15:16954", LrsLastArg);
lrs_receive("socket12", "buf34", LrsLastArg);
lrs_send("socket12", "buf35", LrsLastArg);
lrs_close_socket("socket14");
对应的datawa:
send buf33 212
"POST /tradeweb/httpXmlServlet HTTP/1.1\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"Host: 172.16.2.15:16955\r\n"
"Cookie: JSESSIONID=4E32EB3CCDF58C5704F63112764BA0E3\r\n"
"Content-Length: 307\r\n"
"Expect: 100-continue\r\n"
"\r\n"
recv buf34 25
"HTTP/1.1 100 Continue\r\n"
"\r\n"
send buf35 307
"<?xml version=\"1.0\" encoding=\"gb2312\"?><GNNT><REQ name=\"my_weekorder_"
"query\"><USER_ID>001888015</USER_ID><BUY_SELL>0</BUY_SELL><ORDER_NO>0</ORD"
"ER_NO><COMMODITY_ID></COMMODITY_ID><STARTNUM>0</STARTNUM><RECCNT>0</RECCNT"
"><UT>0</UT><SESSION_ID>1450431412801906923</SESSION_ID><MARKET_ID></MARKET"
"_ID></REQ></GNNT>"
报错:
vuser_init.c(98): lrs_send(socket13, buf31)
vuser_init.c(100): lrs_receive(socket13, buf32)
vuser_init.c(100): Mismatch in buffer's length (expected 398 bytes, 318 bytes actually received, difference in 80 bytes)
vuser_init.c(102): lrs_send(socket12, buf33)
vuser_init.c(104): lrs_create_socket(socket14, TCP, ...)
vuser_init.c(104): Error : callConnect - Connection refused. Error code : 10061.
vuser_init.c(104): Error : Timeout expired while trying to connect. Error code : 9017.
Abort was called from an action.
什么原因? |
|