1
问题,交叉动态网站的验证码.. :( 问题链接动作形式https://edu.uast.ac.ir .. 对不起我的英文不好动态网站的file_get_contents
请测试我的代码:
我源代码:
a.php只会
<?php
echo file_get_contents("https://edu.uast.ac.ir");
?>
b.php
<?php
$a = $_POST["captcha_first_page"];
$postdata = http_build_query(
array(
'captcha_first_page' => $a
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents('https://edu.uast.ac.ir/user/user_manage/userLogin/', false, $context);
echo $result;
?>
请帮我
谢谢。但它没有奏效。它们是:http://uploadkon.ir/fl/dd/83339 – j14
@ J14我会看它..是验证码,b.php的内容? – Kordi
是.. 应显示: [链接] https://edu.uast.ac.ir/user/user_manage/userLogin 但它自带的图像... 我在赶时间,我friend.Please测试你的代码.. TNX – j14