PHP Post data with Fsockopen

前端 未结 10 1564
梦如初夏
梦如初夏 2020-12-01 15:20

I am attempting to post data using fsockopen, and then returning the result. Here is my current code:



        
10条回答
  •  不知归路
    2020-12-01 15:54

    Try this instead

    $out .= 'Content-Length: ' . strlen($data) . '\r\n';
    $out .= "Connection: Close\r\n\r\n";
    $out .= $data;
    

提交回复
热议问题