Hi. This is odd and I've spent too much time trying to debug so thought I'd ask.
I've had a drupal_http_request on my site for some time now that suddenly has stopped returning data. A GET request in a browser does show XML being returned, but the drupal_http_request is showing empty data. I can't think of any reason why this has stopped working. Any help is appreciated. Thanks!
My code looks like this:
$rest_view = drupal_http_request('http://graham.umich.edu/rest/dow-masters-current-json');
Here is the output from krumo on that variable:
... (Object) stdClass
-
request (String, 113 characters ) GET /rest/dow-masters-current-json HTTP/1.0 Us... GET /rest/dow-masters-current-json HTTP/1.0 User-Agent: Drupal (+http://drupal.org/) Host: graham.umich.edu
-
data (String, 0 characters )
-
protocol (String, 8 characters ) HTTP/1.1
-
status_message (String, 2 characters ) OK
-
headers (Array, 11 elements)
-
code (String, 3 characters ) 200
Comments
Reverted to older services and services_views
I reverted back to services 7.x-3.24 and services_views 7.x-1.3 and it's working again. I'm now getting json in my data.