PB如何读GetURL的返回数据,感谢各位大侠!!!

gongj 2010-11-17 08:44:42
我用inet.GetURL("http://221.224.134.226/port/insertjt.asp?no=11") 得到以下数据:
************* 内容 ***************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

1
</meta>
</head>
</html>
************** 内容 *************

问题是我如何取得meta的里的值(例子里meat 的值 1),<meta ../> 1 </meta>
...全文
685 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
w9523 2011-06-22
  • 打赏
  • 举报
回复
PB的WEB真的很让人抓狂啊
xiaobn_cn 2010-11-19
  • 打赏
  • 举报
回复
到PB11为止还没有提供对于HTML访问查找的函数,估计楼主得自已写代码了。
cqwally 2010-11-18
  • 打赏
  • 举报
回复
pb 支持 c#语言嵌入调用.net库
如下例子,至于你想干啥,自己去.net库里面找

1. string ls_sessionid, username
2. #if defined PBWEBFORM then
3. System.Web.SessionState.HttpSessionState ss
4. ss = System.Web.HttpContext.Current.Session
5. ls_sessionid = ss.SessionID
6. messagebox("",ls_sessionid )
7. #end if
gongj 2010-11-17
  • 打赏
  • 举报
回复
兄弟能给个例子吗,感谢!
zlf19810306 2010-11-17
  • 打赏
  • 举报
回复
自己写程序解析html

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧