同样的问题!高手们帮忙看看!
Action(){
lr_start_transaction("login");
lr_rendezvous("login");
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.1.245:80", LrsLastArg);
//lrs_set_receive_option(EndMarker, EndMarker_None ); // 读取直到缓冲结束.
lrs_set_receive_option(EndMarker, 2, "</Login>\n", LrsLastArg);
//lrs_set_receive_option(EndMarker, BinaryStringTerminator , "");
lrs_send("socket0", "buf0", LrsLastArg);
// lrs_length_receive("socket0", "buf1", OffsetSize, "Size=2", LrsLastArg);
lr_output_message("stbid:%s", lr_eval_string("<ID>"));
lr_output_message("username:%s", lr_eval_string("<US>"));
lr_output_message("password:%s", lr_eval_string("<PW>"));
lr_think_time(4);
//lrs_set_receive_option(Mismatch, MISMATCH_CONTENT, LrsLastArg);
// lrs_set_receive_option(EndMarker, RecordingSize, LrsLastArg);
//lrs_set_recv_timeout(120, 0);
// lrs_set_recv_timeout2(10,0);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_save_searched_string("socket0", LRS_LAST_RECEIVED, "Parameter4", "LB/BIN=<userkey>", "RB/BIN=</userkey>", 1, 0, -1);
lr_output_message("The text is:%s", lr_eval_string("<Parameter4>"));
// lrs_save_param("socket0", LRS_LAST_RECEIVED, "Parameter2", 327, 36);
//lrs_save_searched_string("socket0", LRS_LAST_RECEIVED, "Parameter1","LB/BIN=>","RB/BIN=<", -1, 327, 36);
/* int i=0;
lrs_send("socket0", "buf0", LrsLastArg);
while( i!=384)
{
lrs_receive("socket0", "buf1", LrsLastArg);
i=lrs_get_last_received_buffer_size ("socket0");
}*/
lrs_close_socket("socket0");
lr_end_transaction("login", LR_AUTO);
return 0;
}
报的错误如下!
Error : Unable to save to parameter lrs_save_searched_string :. Error code : 9015.
页:
[1]