|
8#
楼主 |
发表于 2007-4-30 11:20:16
|
只看该作者
function InitAgenda()
{
InFile1 = CopyFile("C:\\as.txt")
Open(InFile1)
}
/***** WLIDE - GlobalInputFile : InFile1 (C:\\as.txt) - ID:15 *****/
strGlobalInputFileLine = GetLine(InFile1,",")
InFile1_Col1 = strGlobalInputFileLine[1]
/***** WLIDE - BeginTransaction - ID:17 *****/
BeginTransaction("Transaction1")
/***** WLIDE - URL : http://www.baidu.com/ - ID:2 *****/
wlGlobals.GetFrames = false
// Request Headers:
// GET: http://www.baidu.com/
// Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
// Accept-Language = zh-cn
// Accept-Encoding = gzip, deflate
// User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
// Host = www.baidu.com
// Proxy-Connection = Keep-Alive
// Cookie = BAIDUID=EB6E222395C81F19D633B74AA356ABE4
aaa = extractValue( "html", "head",InFile1_Col1 )
InfoMessage(aaa)
wlHttp.Header["Accept"] = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, \x2A/\x2A"
wlHttp.Header["Accept-Language"] = "zh-cn"
//wlHttp.Header["Accept-Encoding"] = "gzip, deflate"
wlHttp.Header["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)"
wlHttp.Header["Host"] = "www.baidu.com"
wlHttp.Header["Proxy-Connection"] = "Keep-Alive"
wlHttp.Header["Cookie"]= "BAIDUID=EB6E222395C81F19D633B74AA356ABE4"
wlHttp.Get("http://www.baidu.com/")
/***** WLIDE - SetTimer - ID:19 *****/
SetTimer("Timer1")
/***** WLIDE - BuildingBlock:ValueExtraction - ID:14 *****/
bbb = extractValue( "html", "head",InFile1_Col1)
InfoMessage(bbb)
// Status = HTTP/1.1 200 OK
// Response Headers:
// GET: http://www.baidu.com/
// Date = Thu, 12 Apr 2007 07:33:40 GMT
// Server = BWS/1.0
// Content-Length = 3723
// Content-Type = text/html
// Expires = Thu, 12 Apr 2007 07:33:41 GMT
// Cache-Control = max-age=1
/***** WLIDE - URL : http://www.baidu.com/s?wd=aas&cl=3 - ID:4 *****/
// Request Headers:
// GET: http://www.baidu.com/s?wd=aas&cl=3
// Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
// Referer = http://www.baidu.com
// Accept-Language = zh-cn
// Accept-Encoding = gzip, deflate
// User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
// Host = www.baidu.com
// Proxy-Connection = Keep-Alive
// Cookie = BAIDUID=EB6E222395C81F19D633B74AA356ABE4
wlHttp.Header["Accept"] = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, \x2A/\x2A"
wlHttp.Header["Referer"] = "http://www.baidu.com"
wlHttp.Header["Accept-Language"] = "zh-cn"
//wlHttp.Header["Accept-Encoding"] = "gzip, deflate"
wlHttp.Header["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)"
wlHttp.Header["Host"] = "www.baidu.com"
wlHttp.Header["Proxy-Connection"] = "Keep-Alive"
wlHttp.Header["Cookie"] = "BAIDUID=EB6E222395C81F19D633B74AA356ABE4"
wlHttp.FormData["wd"] = "aas"
wlHttp.FormData["cl"] = "3"
wlHttp.Get("http://www.baidu.com/s?wd=aas&cl=3")
// Status = HTTP/1.1 200 OK
// Response Headers:
// GET: http://www.baidu.com/s?wd=aas&cl=3
// Date = Thu, 12 Apr 2007 07:33:44 GMT
// Server = BWS/1.0
// Content-Length = 20066
// Content-Type = text/html
/***** WLIDE - URL : ?t=0&q=aas&p=0&pn=1 - ID:5 *****/
// Request Headers:
// GET: ?t=0&q=aas&p=0&pn=1
// Accept = */*
// Referer = http://www.baidu.com/s?wd=aas&cl=3
// Accept-Language = zh-cn
// Accept-Encoding = gzip, deflate
// User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
// Host = c.baidu.com
// Proxy-Connection = Keep-Alive
// Cookie = BAIDUID=EB6E222395C81F19D633B74AA356ABE4
wlHttp.Header["Accept"] = "\x2A/\x2A"
wlHttp.Header["Referer"] = "http://www.baidu.com/s?wd=aas&cl=3"
wlHttp.Header["Accept-Language"] = "zh-cn"
//wlHttp.Header["Accept-Encoding"] = "gzip, deflate"
wlHttp.Header["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)"
wlHttp.Header["Host"] = "c.baidu.com"
wlHttp.Header["Proxy-Connection"] = "Keep-Alive"
wlHttp.Header["Cookie"] = "BAIDUID=EB6E222395C81F19D633B74AA356ABE4"
wlHttp.FormData["t"] = "0"
wlHttp.FormData["q"] = "aas"
wlHttp.FormData["p"] = "0"
wlHttp.FormData["pn"] = "1"
wlHttp.Get("http://c.baidu.com/c.gif")
DumpHeaders()
// Status = HTTP/1.1 204 No Content
// Response Headers:
// GET: ?t=0&q=aas&p=0&pn=1
// Cache-Control = private
// Content-Type = text/html
// Server = BWS/1.0
// Content-Length = 0
/***** WLIDE - JavaScriptObject - ID:26 *****/
/***** WLIDE - BuildingBlock:ValueExtraction - ID:25 *****/
function DumpHeaders() {
var d=document.wlHeaders;
var x=0;
do{
InfoMessage("HEADER#: " + x + " TITLE: " +d[x].key +
"VALUE:"+d[x].value)
joe = extractValue( "se", "1.0",d[x].key + "VALUE:"+d[x].value)
if (joe != null)
{
InfoMessage(joe)
break;
}
x++;
} while (x < d.length)
return;
}
/***** WLIDE - URL : http://www.baidu.com/s?ie=gb2312 ... mp;wd=fddf&ct=0 - ID:7 *****/
// Request Headers:
// GET: http://www.baidu.com/s?ie=gb2312 ... mp;wd=fddf&ct=0
// Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
// Referer = http://www.baidu.com/s?wd=aas&cl=3
// Accept-Language = zh-cn
// Accept-Encoding = gzip, deflate
// User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
// Host = www.baidu.com
// Proxy-Connection = Keep-Alive
// Cookie = BAIDUID=EB6E222395C81F19D633B74AA356ABE4
wlHttp.Header["Accept"] = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, \x2A/\x2A"
wlHttp.Header["Referer"] = "http://www.baidu.com/s?wd=aas&cl=3"
wlHttp.Header["Accept-Language"] = "zh-cn"
//wlHttp.Header["Accept-Encoding"] = "gzip, deflate"
wlHttp.Header["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)"
wlHttp.Header["Host"] = "www.baidu.com"
wlHttp.Header["Proxy-Connection"] = "Keep-Alive"
wlHttp.Header["Cookie"] = "BAIDUID=EB6E222395C81F19D633B74AA356ABE4"
wlHttp.FormData["ie"] = "gb2312"
wlHttp.FormData["bs"] = "aas"
wlHttp.FormData["sr"] = "$WL$EMPTY$STRING$"
wlHttp.FormData["z"] = "$WL$EMPTY$STRING$"
wlHttp.FormData["cl"] = "3"
wlHttp.FormData["f"] = "8"
wlHttp.FormData["wd"] = "fddf"
wlHttp.FormData["ct"] = "0"
wlHttp.Get("http://www.baidu.com/s")
// Status = HTTP/1.1 200 OK
// Response Headers:
// GET: http://www.baidu.com/s?ie=gb2312 ... mp;wd=fddf&ct=0
// Date = Thu, 12 Apr 2007 07:33:50 GMT
// Server = BWS/1.0
// Content-Length = 18034
// Content-Type = text/html |
|