Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From #106506: drupal_http_request() does not handle 'chunked' responses - Make it support HTTP 1.1
Helps to know what this looks like: http://en.wikipedia.org/wiki/Chunked_transfer_encoding#Example
Various functions on php.net. IMHO the regex ones seem like a bad idea.
http://php.net/fsockopen#96146
http://php.net/fsockopen#85572
http://php.net/fsockopen#73581 (this one handles compression)
Also see #997648-6: drupal_http_request() always calls fread() one more time than necessary
Comment | File | Size | Author |
---|---|---|---|
#1 | httprl-1357482-1.patch | 3.17 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedTo handle HTTP/1.1, 100 Continue and headers at the bottom of the chunked response needs to be accounted for http://www.jmarshall.com/easy/http/#http1.1clients. So right now this is does not support the full 1.1 spec but it should handle most use cases.
This patch below has been committed, if the full 1.1 spec is needed a new issue can be opened.
Comment #2.0
(not verified) CreditAttribution: commentedadd in one more issue