I'm working on proxy based machine where I've configured my proxy settings at settings.php and its working fine.

When I'm trying to access a URL the data is getting displayed perfectly, for instance, https://maps.googleapis.com/maps/api/geocode/json?address=California but when I'm doing the same thing at my devel/php

$maps_url = 'https://maps.googleapis.com/maps/api/geocode/json?address=California';
$maps_json = drupal_http_request($maps_url);

it's returning me this: enter image description here

I've confirmed 2 settings in my php.ini:

  1. allow_url_fopen
  2. allow_url_include

enter image description here

Where else should I look so that this issue will get fixed?

  • It's returning a 400 error, but it's not clear from where... the proxy or from Google? If you look more closely at data property of the response and the headers, this should help you narrow it down. For example, I don't see the API key (you may have omitted it). That could result in an error.
    – cleaver
    Commented Nov 29, 2015 at 0:45

1 Answer 1


Found this module cURL HTTP Request via this thread and it worked like charm. The issue was with HTTPS hence the HTTP proxy module wasn't able to help me on this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.