1 Star 0 Fork 0

姚文强/mycss3demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fsock.php 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
// if ($_SERVER[ 'POST' == 'REQUEST_METHOD']) {
// code...
// ini_set('display_errors','stderr');
// $remoteDir = 'https://graph.qq.com/t/add_t';
$result;
$port = 80 | 443;
$host = 'graph.qq.com/t/add_t';
$method = 'POST' | 'GET';
$contenttype = 'text/html' | 'text/plain' | 'text/xml';
$params=array(
'access_token' => $_POST['access_token'],
'oauth_consumer_key' => $_POST['oauth_consumer_key'],
'openid' => $_POST['openid'],
'format' => $_POST['format'],
'content' => $_POST['content']
);
if ($port == 443) {
$sshhost = 'ssl://'.$host;
} else {
$sshhost = $host;
}
$fp = fsockopen($sshhost,$port);
$content = http_build_query($params);
fwrite($fp, "POST /reposter.php HTTP/1.1\r\n");
fwrite($fp, "Host: $host\r\n");
fwrite($fp, "Content-Type: application/x-www-form-urlencoded\r\n");
fwrite($fp, "Content-Length: ".strlen($content)."\r\n");
fwrite($fp, "Connection: close\r\n");
fwrite($fp, "\r\n");
fwrite($fp, $content);
header('Content-type: text/plain');
while (!feof($fp)) {
$result.= fgets($fp, 1024);
}
fclose($fp);
echo $result;
return;
//}
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yaowenqiang/mycss3demo.git
git@gitee.com:yaowenqiang/mycss3demo.git
yaowenqiang
mycss3demo
mycss3demo
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385