Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

13
vendor/swoole/examples/http/raw.php vendored Executable file
View File

@ -0,0 +1,13 @@
<?php
$sock = stream_socket_client("tcp://127.0.0.1:9501");
fwrite($sock, file_get_contents('httpdata'));
stream_set_chunk_size($sock, 2*1024*1024);
$data = fread($sock, 8192 * 128);
if ($argv[1] == 'save')
{
file_put_contents("resp.html", $data);
}
else
{
echo $data;
}