Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2014 at 09:58 UTC
Updated:
10 Jul 2015 at 13:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xanoComment #2
sawtell commentedI have tested the patch which works successfully.
Comment #3
Fidelix commentedThis is a very simple change, and it doesn't break any existing functionality.
Can we please get this in?
Comment #6
damien tournoud commenteddrupal_http_request() is an HTTP/1.0 client. Making it a HTTP/1.1 client requires more than just this. In particular it requires supporting chunked responses. From RFC2616:
Comment #7
dgtlmoon commentedyes that is correct, HTTP/1.1 support is probably in D8 #106506: drupal_http_request() does not handle 'chunked' responses - Make it support HTTP 1.1 , and requires chunked handling
Comment #8
nlamot commentedIf you want to do a HTTP 1.1 request, you can always use the cURL HTTP Request module.
When you enable it, you can replace drupal_http_request with chr_curl_http_request, it follows the same API as drupal_http_request.