int result;
web_set_max_html_param_len("2048");
result = web_reg_save_param("param1",
"LB=q3>",
"RB=<",
"Search=Body",
LAST);
lr_save_string( lr_eval_string("{param1}"),"q1" );
if ( result != 0 ) {
lr_save_string( " ","q1" );
}
web_custom_request("im.sim",
"URL=http://192.168.1.3:8081/IM/im.sim",
"Method=POST",
"Resource=0",
"RecContentType=application/xml",
"Referer=http://192.168.1.3:8081/IM/",
"Snapshot=t2.inf",
"Mode=HTTP",
"EncType=multipart/form-data; boundary=---------------------------7d72bf1650a12",
"Body=-----------------------------7d72bf1650a12\r\n"
"Content-Disposition: form-data; name=\"F1\"; filename=\"\"\r\n"
"Content-Type: application/octet-stream\r\n"
"\r\n"
"\r\n"
"-----------------------------7d72bf1650a12\r\n"
"Content-Disposition: form-data; name=\"requestxml\"\r\n"
"\r\n"
"<c>\r\n"
" <d>{num}</d>\r\n" //
" <c1>V0.0.1</c1>\r\n"
" <r2>V</r2>\r\n"
" <q2> </q2>\r\n"
" <c2>ie</c2>\r\n"
" <j>12345678901234567890123456789012</j>\r\n"
" <e1>10000000001</e1>\r\n"
" <k>imping</k>\r\n"
" <q3>{q1}</q3>\r\n"
"</c>\r\n"
"-----------------------------7d72bf1650a12\r\n"
"Content-Disposition: form-data; name=\"B1\"\r\n"
"\r\n"
"Submit\r\n"
"-----------------------------7d72bf1650a12--\r\n",
LAST);
return 0;
}
[ 本帖最后由 QM 于 2007-3-27 10:21 编辑 ] |