由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - 怎么抓一个页面submit后的结果页面?
相关主题
thank you! Re: calling lynx from perl cgi-scripthtml 如何把大段文字和网页对象分开,然后文字以引用的方式嵌回对象区?
Q: 2 submit buttons in 1 pageasp.net 的textbox 的textchange事件为什么有时候不按enter键就fire了?
怎样向用户返回suyvey form的统计结果?JQuery and Master Pages in ASP.NET
怎样从多个页码收集数据?请问实现关注计数功能
Googlecalling lynx from perl cgi-script
ASP 和DATABASE一问How to simulate post submission
请问ASP高手如何从程序里自动访问网站?
Ok leRe: 请问ASP高手Sever端程序,获取另外一个web site的用户输入的功能叫什么
相关话题的讨论汇总
话题: 页面话题: 结果话题: submit话题: perl话题: source
进入BuildingWeb版参与讨论
1 (共1页)
h**v
发帖数: 2010
1
一个网站有个form,填一些textbox输入值提交出去到一个php页面返回结果。如果我想
写个程序模拟输入值,然后监控最后返回的结果页面(email给自己也行),应该怎么
做呢?哪种编程方法最方便?
c***c
发帖数: 21374
2
php,perl,jsp等等都可以
如果用perl,参考http://safari.oreilly.com/0596003137/perlckbk2-CHP-20
如果php,参考http://safari.oreilly.com/0596101015/phpckbk-CHP-13

【在 h**v 的大作中提到】
: 一个网站有个form,填一些textbox输入值提交出去到一个php页面返回结果。如果我想
: 写个程序模拟输入值,然后监控最后返回的结果页面(email给自己也行),应该怎么
: 做呢?哪种编程方法最方便?

q**1
发帖数: 193
3
You should first check the source of that page and see what's the
HTTP method.
1) If it's "GET", thing is easy, group and write your form-data into url, and
use any Linux tools that can grab HTML source like lynx, curl et.al and
then pipe the result out to mail, i.e.
lynx -source http://example.com/form.php?a=1&b=2 | mail .....
2) If it's "POST", you may want to use some programming stuff. since it's
kind of a web-crawling-like thing, Perl might be a good choice. check the
documentation for th

【在 h**v 的大作中提到】
: 一个网站有个form,填一些textbox输入值提交出去到一个php页面返回结果。如果我想
: 写个程序模拟输入值,然后监控最后返回的结果页面(email给自己也行),应该怎么
: 做呢?哪种编程方法最方便?

h**v
发帖数: 2010
4
多谢多谢

【在 c***c 的大作中提到】
: php,perl,jsp等等都可以
: 如果用perl,参考http://safari.oreilly.com/0596003137/perlckbk2-CHP-20
: 如果php,参考http://safari.oreilly.com/0596101015/phpckbk-CHP-13

h**v
发帖数: 2010
5
多谢多谢

and

【在 q**1 的大作中提到】
: You should first check the source of that page and see what's the
: HTTP method.
: 1) If it's "GET", thing is easy, group and write your form-data into url, and
: use any Linux tools that can grab HTML source like lynx, curl et.al and
: then pipe the result out to mail, i.e.
: lynx -source http://example.com/form.php?a=1&b=2 | mail .....
: 2) If it's "POST", you may want to use some programming stuff. since it's
: kind of a web-crawling-like thing, Perl might be a good choice. check the
: documentation for th

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
Sever端程序,获取另外一个web site的用户输入的功能叫什么Google
一个傻问题,具体这个怎么写?ASP 和DATABASE一问
Help --- Parsing posted JSON data (转载)请问ASP高手
如何让自己的网站抓取网页信息?(嵌套浏览器?)Ok leRe: 请问ASP高手
thank you! Re: calling lynx from perl cgi-scripthtml 如何把大段文字和网页对象分开,然后文字以引用的方式嵌回对象区?
Q: 2 submit buttons in 1 pageasp.net 的textbox 的textchange事件为什么有时候不按enter键就fire了?
怎样向用户返回suyvey form的统计结果?JQuery and Master Pages in ASP.NET
怎样从多个页码收集数据?请问实现关注计数功能
相关话题的讨论汇总
话题: 页面话题: 结果话题: submit话题: perl话题: source