php curl怎么得到HTTP chunked response中chunked data size
Jun 13, 2016 pm 01:23 PM
php curl如何得到HTTP chunked response中chunked data size?
curl向一个网站post数据时,可以得到相应的响应头(header)和响应体(body),响应体的传输编码(Transfer-Encoding)是区块格式(chunked)。怎么得到http区块应答(HTTP chunked response)中的数据大小(Chunk size)?
------解决方案--------------------
了解Transfer-Encoding:chunked协议是什么意思,以及返回的http body是什么样的格式,问题基本就解决得七七八八了。
你看看
http://topic.csdn.net/u/20110109/18/5f164cba-5b24-4497-96de-1a0f06ba84ab.html
我的回帖,有代码的。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Understand common application scenarios of web page redirection and understand the HTTP 301 status code

How to use Nginx Proxy Manager to implement automatic jump from HTTP to HTTPS

Quick Application: Practical Development Case Analysis of PHP Asynchronous HTTP Download of Multiple Files

How to implement HTTP streaming using C++?

Common network communication and security problems and solutions in C#
