coltguo
V2EX  ›  问与答

关于 PHP 的 soket 发送 http 的问题

  •  
  •   coltguo · Jun 22, 2017 · 2239 views
    This topic created in 3248 days ago, the information mentioned may be changed or developed.

    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 replies    2017-06-22 17:16:53 +08:00
    cloudyplain
        1
    cloudyplain  
       Jun 22, 2017
    单引号换双引号
    2ME
        2
    2ME  
       Jun 22, 2017
    "\r\n" 双引号
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 254ms · UTC 03:06 · PVG 11:06 · LAX 20:06 · JFK 23:06
    ♥ Do have faith in what you're doing.