drupal_http_request() should be a wrapper for the browser.

CommentFileSizeAuthor
#3 drupal_http_request-1.patch17.13 KBc960657

Comments

pwolanin’s picture

well, currently browser.cin is a bit of a mess.

it also used file_get_contents() which will break on hosts that don't allow fopen url.

c960657’s picture

AFAICT, cURL does not offer sub-second precision for CURLOPT_TIMEOUT prior to PHP 5.2.3, so I guess it will be difficult to support drupal_http_request's timeout parameter that is a float.

c960657’s picture

StatusFileSize
new17.13 KB

This takes it some of the way. Feel free to take it further.

boombatower’s picture

Project: Drupal core » Browser
Version: 7.x-dev » 7.x-1.x-dev
Component: browser system » Code

Move to Browser module for further development.