|
下面是我录制的sohu邮箱发邮件的脚本:(为何感觉和视频上面讲的不同呢,乱七八糟的)
Action()
{
lr_start_transaction("写邮件");
lr_think_time(15);
web_custom_request("mail",
"URL=http://mail.sohu.com/bapp/95/mail",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.sohu.com/bapp/95/main#writeMail",
"Snapshot=t11.inf",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=UTF-8",
"Body=id=0&is_send=0&is_html=1&to=%22lr_rxiongzn%22%3Clr_rxiongzn%40sohu.com%3E%2C&cc=&bcc=&subject={NewParam}%20is%20weekly%2C%20how%20are%20you%3F&html=%3CP%3E%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%3C%2FP%3E%0D%0A%3CP%3Etomorrow%20i%20will%20%3CBR%3E%3C%2FP%3E&text=%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%0D%0Atomorrow%20i%20will%20&env="
"%7B%22attach%22%3A%20%5B%5D%2C%20%22original_id%22%3A%200%2C%20%22draft_type%22%3A%200%2C%20%22message_id%22%3A%20%22%22%2C%20%22references%22%3A%20%5B%5D%2C%20%22reply_to%22%3A%20%5B%5D%2C%20%22in_reply_to%22%3A%20%5B%5D%2C%20%22mail_followup_to%22%3A%20%5B%5D%2C%20%22thread%22%3A%200%7D&_method=put",
LAST);
lr_end_transaction("写邮件",LR_AUTO);
lr_start_transaction("发邮件");
lr_think_time(20);
web_custom_request("mail_2",
"URL=http://mail.sohu.com/bapp/95/mail",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.sohu.com/bapp/95/main#writeMail",
"Snapshot=t12.inf",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=UTF-8",
"Body=id=63&stationery=&is_send=1&is_html=1&subject=Today%20is%20weekly%2C%20how%20are%20you%3F&from=lr_rxiongzn%40sohu.com&fullname=&to=%22lr_rxiongzn%22%3Clr_rxiongzn%40sohu.com%3E&cc=&bcc=&html=%3CP%3E%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%3C%2FP%3E%0D%0A%3CP%3Etomorrow%20i%20will%20.%3CBR%3E%3C%2FP%3E&text=%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%0D%0Atomorrow%20i%20will%20.&addressbook_use_flag=0&addressbook_use_list=1&env="
"%7B%22attach%22%3A%20%5B%5D%2C%20%22original_id%22%3A%200%2C%20%22draft_type%22%3A%200%2C%20%22message_id%22%3A%20%22%22%2C%20%22references%22%3A%20%5B%5D%2C%20%22reply_to%22%3A%20%5B%5D%2C%20%22in_reply_to%22%3A%20%5B%5D%2C%20%22mail_followup_to%22%3A%20%5B%5D%2C%20%22save_after_send%22%3A%201%2C%20%22save_to_addressbook%22%3A%201%2C%20%22thread%22%3A%200%7D&securityCode="
"UPAPCLALHCPLCLHCUPCLHPNCPLAPUCALYLSPLCPLAPUCACUPCLYLHCUPCLHPLCPLCPUCPLAPCLHCUPCLHLACUPCLALYCPLAPCLHLYPECACPLAPCPLCPLCPUCUPCLHCACPLAPUCSLYCAPELYLALSCPLCPUCUPCLHLSLYCALSLYPULHLYPLCPLYLAPULYPLCALYLAPULYPLCPLYPLCALYPLCSLYPLPELYCALSLYPLPELYLAPL&single=0&sendtime=1257675698187&_method=put",
EXTRARES,
"Url=/score/getscoreinfo", "Referer=http://mail.sohu.com/bapp/95/main#writeMail", ENDITEM,
LAST);
web_url("success.htm",
"URL=http://ad.mail.sohu.com/mail/success.htm?1257675600953",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.sohu.com/bapp/95/main",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
lr_end_transaction("发邮件",LR_AUTO);
return 0;
} |
|