[英]WWW::Mechanize::Firefox open url error
Am using WWW::Mechanize::Firefox in perl to automate a process. 我在perl中使用WWW :: Mechanize :: Firefox来自动执行一个过程。 I can login without hassle by supplying the required fields and posting to the URL. 我可以通过提供必填字段并发布到URL来轻松地进行登录。
URL: hxxp://www.somesite.com/login-link.php
网址: hxxp://www.somesite.com/login-link.php
The above URL changes upon successful login to 成功登录后,以上URL会更改
hxxp://www.somesite.com/app/default.php
When I follow on any link, the URL doesn't change, but the content div would. 当我点击任何链接时,URL不会更改,但内容div会更改。 When you open the link directly on the browser it ie hxxp://www.somesite.com/app/profile.php?id=3 it doesn't load the parent div/frame which is hxxp://www.somesite.com/app/default.php. 当您直接在浏览器中打开链接时,即hxxp://www.somesite.com/app/profile.php?id = 3,它不会加载父div / frame,即hxxp://www.somesite。 com / app / default.php。
My question is that, is it possible to get($url2) whilst maintaining/keeping the parent div. 我的问题是,可以在保持/保持父div的同时获取($ url2)。
为有兴趣的人解决了该问题,我使用EVAL函数来实现
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.