V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
coltguo
V2EX  ›  问与答

关于 PHP 的 soket 发送 http 的问题

  •  
  •   coltguo · 2017-06-22 16:02:39 +08:00 · 1526 次点击
    这是一个创建于 2502 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/coltguo/test/blob/master/demo.php 这个 socket 文件 为什么运行出来,是出现如下错误 HTTP/1.0 400 Bad request Cache-Control: no-cache Connection: close Content-Type: text/html 400 Bad request

    Your browser sent an invalid request

    求大神帮我看看

    2 条回复    2017-06-22 17:16:53 +08:00
    cloudyplain
        1
    cloudyplain  
       2017-06-22 16:50:36 +08:00
    单引号换双引号
    2ME
        2
    2ME  
       2017-06-22 17:16:53 +08:00
    "\r\n" 双引号
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3015 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:13 · PVG 22:13 · LAX 07:13 · JFK 10:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.