Skip to content
Snippets Groups Projects
Commit 802aa494 authored by ttaylor's avatar ttaylor Committed by Chris Leppanen
Browse files

Issue #2427497 by ttaylor249: Fetching feed via SSL through proxy doesn't work

parent e0e80b5c
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,12 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
// considered by CURLINFO_HEADER_SIZE (possibly cURL bug).
// This data is only added when to HTTP header when working with a proxy.
// Example string added: <HTTP/1.0 200 Connection established\r\n\r\n>
if ($proxy_server && _drupal_http_use_proxy($uri['host'])) {
// This was fixed in libcurl version 7.30.0 (0x71e00) (April 12, 2013),
// so this workaround only removes the proxy-added headers if we are using
// an older version of libcurl.
$curl_ver = curl_version();
if ($proxy_server && $curl_ver['version_number'] < 0x71e00 && _drupal_http_use_proxy($uri['host'])) {
$http_header_break = "\r\n\r\n";
$response = explode($http_header_break, $data);
if (count($response) > 2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment