|
lr_start_transaction("建立数据库连接");
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=192.168.66.21:2383", LrsLastArg);
lrs_send("socket1", "buf3", LrsLastArg);
lrs_receive("socket1", "buf4", LrsLastArg);
lrs_save_searched_string("socket1", LRS_LAST_RECEIVED, "Parameter1", "LB/BIN=<SspiHandshake>", "RB/BIN=</SspiHandshake>", 1, 0, -1);
lrs_save_searched_string("socket1", LRS_LAST_RECEIVED, "Parameter2", "LB/BIN=</soap:Body></soap:Envelope>", NULL, 1, 0, 1);
lrs_send("socket1", "buf5", LrsLastArg);
lrs_receive("socket1", "buf6", LrsLastArg);
......
中间省略大约10组lrs_send与lrs_receive
lr_end_transaction("建立数据库连接", LR_AUTO);
以下是buf3,buf4,buf5,buf6的信息,储存在data.ws中:
send buf3 316
"\x0e\x10\x00\x04\x00\x00\x00"
"\b"
"\x00\x00\x01"
"\""
"\x18\x00\x00\x00"
"text/xml<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelo"
"pe/\"><soap:Body><Authenticate xmlns=\"http://schemas.microsoft.com/analys"
"isservices/2003/ext\"><SspiHandshake>TlRMTVNTUAABAAAAt4II4gAAAAAAAAAAAAAAA"
"AAAAAAFASgKAAAADw== \n"
"</SspiHandshake></Authenticate></soap:Body></soap:Envelope>"
"\x00\x00"
recv buf4 504
"\x0e\x10\x00\x04\x00\x00\x00"
"\b"
"\x00\x00\x01\xdf\x18\x00\x00\x00"
"text/xml<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelo"
"pe/\"><soap:Body><AuthenticateResponse xmlns=\"http://schemas.microsoft.co"
"m/analysisservices/2003/ext\"><return><SspiHandshake>TlRMTVNTUAACAAAAEAAQA"
"DgAAAA1goricoZLJwyNzFkAAAAAAAAAAFQAVABIAAAABQLODgAAAA9E \n"
"AEMAUwBFAFIAVgBFAFIAAgAQAEQAQwBTAEUAUgBWAEUAUgABABAARABDAFMARQBSAFYARQBSAA"
"QA \n"
"EABkAGMAcwBlAHIAdgBlAHIAAwAQAGQAYwBzAGUAcgB2AGUAcgAAAAAA \n"
"</SspiHandshake></return></AuthenticateResponse></soap:Body></soap:Envelop"
"e>G"
send buf5 524
"\x0e\x10\x00\x04\x00\x00\x00"
"\b"
"\x00\x00\x01\xf4\x19\x00\x00\x00"
"text/xml<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelo"
"pe/\"><soap:Body><Authenticate xmlns=\"http://schemas.microsoft.com/analys"
"isservices/2003/ext\"><SspiHandshake>TlRMTVNTUAADAAAAGAAYAIIAAAAYABgAmgAAA"
"BAAEABIAAAAGgAaAFgAAAAQABAAcgAAABAAEACy \n"
"AAAANYKI4gUBKAoAAAAPVwBBAE4ARwBSAE8ATgBHAGEAZABtAGkAbgBpAHMAdAByAGEAdABvAH"
"IA \n"
"VwBBAE4ARwBSAE8ATgBHAAB6DHpBvFa2AAAAAAAAAAAAAAAAAAAAAIJt4pOb73mIR48zywWfH4"
"7J \n"
"bkF3U6raAmC8c/EExCLOF32ky4Y9Ih8= \n"
"</SspiHandshake></Authenticate></soap:Body></soap:Envelope>"
recv buf6 396
"\x0e\x10\x00\x04\x00\x00\x00\x15\x00\x00\x01"
"a"
"\x18\x00\x00\x00"
"application/sx+xpress"
"\x00"
"悙o"
"\x02\x00\x00"
"Y"
"\x01\x00\x00\x00\x00\x00\x00\xdf\xff\x01\xb0\x04\xfe\x03"
"1"
"\x00"
"."
"\x00"
"0"
"\x00\xfd\x06"
"U"
"\x00"
"T"
"\x00"
"F"
"\x00"
"-"
"\x00"
"1"
"\x00"
"6"
"\x00\x00\xf0"
")h"
"\x00"
"T"
"\x11\x00"
"At\b"
"\x00"
"p"
"\x00"
":"
"\x00"
"/\b"
"\x00"
"s"
"\x00"
"c"
"\x00"
"h"
"\x00"
"e"
"\x00"
"m"
"\x00"
"aX"
"\x00"
"."
"\x00"
"xH"
"\x00"
"lH"
"\x00"
"ox"
"\x00"
"px"
"\x00"
"o"
"\x00\x00\x11"
"*"
"\x1a"
"r"
"\x00"
"g:"
"\x01\x8b\x00"
"/X"
"\x01"
"n"
"\x00"
"v("
"\x00"
"l"
"\x88\x00"
"p8"
"\x00"
"/"
"\x00\xf0\x04\xed\x00\xf0"
"\bE"
"\xef\x00"
"躏"
"\x01\x02\x03\xf8\x01\xf0"
"\n"
"\x04\x00\x05"
""
"\x02"
"n8"
"\x02"
":"
"\x18\x00"
"k"
"\x01\xef\x00\x04\x00\xf6\x02\x0e\x8f\x04"
"<BX"
"\x00"
"d"
"\x00"
"y"
"\x00\xef\x01\x02\x05"
"貘"
"\x03\xf0"
"6'"
"\x03\xff\x05"
"m"
"\x00"
"猌i"
"\x88\x00"
"r"
"\xa0\x01\xb1\x02"
"fH"
"\x01"
".x"
"\x00"
"o"
"\xb8\x00"
"/\b"
"\x01"
"n"
"\x18\x00"
"l`"
"\x02"
"s("
"\x01"
"s\b"
"\x00"
"eH"
"\x01"
"vX"
"\x00"
"cH"
"\x00"
"s\b"
"\x01"
"28\v0阿\r("
"\x00"
"3H"
"\x00"
"ep"
"\x05"
"t"
"\x00\xf0\x14"
"A"
"\x00"
"u8"
"\x00"
"\t"
"\x03"
"n8"
"\x00"
"I"
"\x01"
"a8"
"\x00"
"e"
"\x00"
"R"
"\x18\x00"
"s("
"\x04"
"o"
"\xb8\x00"
"9"
"\x02\xef\x06\x00\x07\x05\xac\x04"
"\f"
"\xf8\x04\xf0\x05"
"#"
"\x07\x99\x00\xef\x00"
"\b"
"\x00\xf6\x05\x0e\x7f\x05"
"U"
"\x06"
"rH"
"\x00"
"t"
"\x98\x05"
"r"
"\xd8\x01\x98\x04"
"\t貘"
"\x06\xf0"
"\rS`"
"\x01"
"p"
"\xb0\x01\xff\x07"
"`THp"
"\x02"
"nh\n"
"s"
"\x10\x04"
"a"
"\x00"
"kP"
"\x01\x10\x01"
"\n"
"\xf8\x07"
"\f"
"\x00"
"鼢鼢鼹"
"\x81"
"\t"
[ 本帖最后由 断寒 于 2009-8-14 11:05 编辑 ] |
|