LoadRunner??WinsockЭ??
???????????? ???????[ 2015/5/6 14:04:37 ] ??????????????????
??????????winsock???????????????????????????Э??????ι?????????????????????????Э?飬????FTP??HTTPЭ??????????л???window??????????IE??WS-FTP?????????Winsocket????????????κθ??Э?????????Winsocket????
???????????LR?????WinsocketЭ?????????????LR??????????????LR???API?????????????????????????????LR WEB????????VUGEN?????IE????????е?HTTP???????????lr????????????Э?飬????Oracle??ODBC?????????Э????????????LR??????hooks????????API??????????????????Э?鶼??????winsocketЭ????????????lr??????Э?飬???????????winsocket?????????????????????????Э?????????????winsocket??????
???????WinSockЭ??????
????Lr????μ????????????????winsockЭ?飻
??????web??????????????????URL?????????VUGEN??????????????п???????????Winsocket????????????????????????????????????????????????????????????????????????????
????????????????????winsock?????web?????????????????????????ie?????????????lr?????httpЭ?????????????????????????壬??????????????
????winsock??????????
????lrs_create_socket("socket0"??"UDP"??"LocalHost="0""??"RemoteHost=doors:2084"??LrsLastArg);
????lrs_create_socket("socket1"??"TCP"??"LocalHost=0"??"RemoteHost=www2??yahoo??com:80"??LrsLastArg);
????lrs_send("socket0"??"buf0"??LrsLastArg);
????lrs_receive("socket0"??"buf1"??LrsLastArg);
????lrs_send("socket1"??"buf2"??LrsLastArg);
????lrs_send("socket0"??"buf3"??LrsLastArg);
????lrs_receive("socket0"??"buf4"??LrsLastArg);
?????????????????????????????????????winsock??????winsocket?????????????????????????????б?web????????????????????????
??????????????data.ws???????????????action??????????а????????
?????????????data.ws???????
????send buf0
????"!"
????recv buf1 1
????"!"
????send buf2
????"GET / HTTP/1??1
"
????"Accept: */*
"
????"Accept-Language: en-us
"
????"Accept-Encoding: gzip??deflate
"
????"User-Agent: Mozilla/4??0 (compatible; MSIE 5??01; Windows NT 5??0)
"
????"Host: www??yahoo??com
"
????"Connection: Keep-Alive
"
????"Cookie: B="5oj83bst12l6m&b="2;" Y="v=1&n=8lln5lmi3f8g1&l=6ef8c0d34b0/o&p=m2a2s""
????"qa4110004&r=3f&lg=us&intl=us; T="z=4TVE6A4ZqE6A9dIIpt30??NQNTYGNDE3NTYwM081&""
????"a=AAE&sk=DAAEwinHlDtEm/&d=c2wBTWpFQk16WXdNakUzTkRneQFhAUFBRQF6egE0VFZFNkFn"
????"V0E-; I="i1=010g1q1u24252e2i2k2p2r494a4g4m4q55565b5g6g6t6u7172737678797a7f7""
????"g7k7n7o888f8k8p8q989c9f9i9k9l9n9qacanapb0b3bdbfbhblbqbrbuc0c1c4cgcmcscteie"
????"jgr&ir=73
"
????"
"
????send buf3
????"!"
????recv buf4 1
????"!"
????recv buf5 2048
????"HTTP/1??0 200 OK
"
????"Content-Length: 16030
"
????"Content-Type: text/html
"
????"
"
????"
????buf2?????????www??yahoo??com?????buf5???????server????????????翴????winsock????????????web??????????п????????winsock?????????????buf???к???????buf?????????????5??buffer?????2048?????????2048?????
???????????buffer?????????????????????“??”????????????糣?????????????????????κε????????????????Щ??????????data??ws?????????Ч??????????action?????Щ??????????????????????????buffer??????//????????????????????е?????±???????buffers 0??1??3 ??4 ????????:
????lrs_create_socket("socket0"??"UDP"??"LocalHost="0""??"RemoteHost=doors:2084"??LrsLastArg);
????lrs_create_socket("socket1"??"TCP"??"LocalHost=0"??"RemoteHost=www2??yahoo??com:80"??LrsLastArg);
????// lrs_send("socket0"??"buf0"??LrsLastArg);
????// lrs_receive("socket0"??"buf1"??LrsLastArg);
????lrs_send("socket1"??"buf2"??LrsLastArg);
????// lrs_send("socket0"??"buf3"??LrsLastArg);
????// lrs_receive("socket0"??"buf4"??LrsLastArg);
????lrs_receive("socket1"??"buf5"??LrsLastArg);
????lrs_send("socket0"??"buf6"??LrsLastArg);
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11