php模拟get提交
2016-12-29 12:37
405 查看
index.php
submit.php
<? /** * 模拟get进行url请求 * QQ:874689017 通达OA专业二次开发 * @param string $url */ $url="http://127.0.0.1/moniget/submit.php?appid=123456&appkey=werwerwer&member_name=啊傻傻的阿什顿啊收到&password=12123123&email=1026@qq.com"; $re = file_get_contents($url); print_r($re); echo "结束了"; ?>
submit.php
<!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=gb2312" /> <title>模拟get测试</title> </head> <body> <? $appid=$_GET["appid"]; $appkey=$_GET["appkey"]; $member_name=$_GET["member_name"]; $password=$_GET["password"]; $email=$_GET["email"]; $myfile = fopen("newfile.txt", "a") or die("Unable to open file!"); //w 重写 a追加 $txt = $appid."\n".$appkey."\n".$member_name."\n".$password."\n".$email."\n"; fwrite($myfile, $txt); fclose($myfile); echo "返回结果"; ?> </body> </html>
相关文章推荐
- php的curl函数模拟post、get数据提交,速度非常慢的处理办法
- php使用CURL模拟GET与POST向微信接口提交及获取数据的方法
- php 模拟get提交
- php中用socket模拟http中post或者get提交数据
- php 模拟get和post提交方法[解决ajax跨域问题]
- php模拟GET与POST向微信接口提交及获取数据的方法
- php模拟get提交 字符串截取 字符串替换 示例源码
- [PHP代码] 用php的fsocket模拟get提交 模拟post提交表单
- php中用socket模拟http中post或者get提交数据的示例代码
- php模拟get提交数据到短信接口
- PHP模拟GET和POST提交数据
- php的curl函数模拟post、get数据提交,速度非常慢的处理办法
- php中用socket模拟http中post或者get提交数据的示例代码
- php 模拟POST提交的2种方法
- php 模拟POST提交的2种方法
- php模拟get和post的几种方法
- PHP文件流模拟POST、GET传值
- php 模拟POST提交的几种方法
- Php中Get、Post提交怎样通过$_GET、$_POST、$_REQUEST获取
- php模拟点击器,刷新,清除ie的get和post请求