//访问tinysoft主页
ret:= GetHttp("http://tinysoft.com.cn",500,data,code);
if ret then
return array(ret,data,code);
else
return "获取失败";
结果:
范例二:指定Session ID并获取指定网页内容
//访问tinysoft主页
sid := createhttpsession();
ret := GetHttp(sid,"http://tinysoft.com.cn",500,data,code);
if ret then
return array(ret,data,code);
else
return "获取失败";