|
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, 2, "</Login>\n", LrsLastArg);
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);
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_close_socket("socket0");
lr_end_transaction("login", LR_AUTO);
return 0;
}
麻烦各位我这样关联有错了?
HTTP/1.1 200 OK\r\nDate: Thu, 27 Sep 2012 01:52:20 GMT\r\nServer: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.3.16\r\nX-Powered-By: PHP/5.3.16\r\nVary: Accept-Encoding\r\nContent-Length: 128\r\nContent-Type: text/html; charset=utf-8\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Login><result>1</result><userkey>CCKDHCTV202@name202@33808@1348710740</userkey></Login>\n
最后跑起来的时候一直报9015错误!跪求解决啊!困扰我老久了!
Action.c(33): Error : Unable to save to parameter lrs_save_searched_string :. Error code : 9015. |
|