buff needs to be null terminated, you can use RETURN_STRINGL(buff,
content_size, 1); if you know the length.
Scott
On 6 Sep 2008, at 23:19, Mangol Smith wrote:
Hello all,
I got a strange problem. I opened a network stream with my web server
(localhost:80) and wrote a HTTP GET into stream and
Hello all,
I got a strange problem. I opened a network stream with my web server
(localhost:80) and wrote a HTTP GET into stream and reading the HTTP
RESPONSE.
buff = (char *)emalloc(content_size);
php_stream_read(http_stream, buff, content_size);
where content_size is the Content-Length value