C客户端用socket向php服务器发送数据,出错?

hong78 hong78 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
error.log
[Wed Jan 04 12:08:25 2012] [error] [client 192.168.0.43] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /default.php
access.log
127.0.0.1 - - [04/Jan/2012:15:21:19 +0800] "GET 127.0.0.1/default.php? HTTP/1.1" 400 226
code
	const   char*   host_name="127.0.0.1";
char* req= "GET 127.0.0.1/default.php? HTTP/1.1\r\n "
"hostname:127.0.0.1"
"Form: local\r\n "
"Content-Type: application/x-www-form-urlencoded\r\n "
"Content-Length: 226\r\n\r\n "
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
hong78
网络编程 18,356 成员 64,161 内容