Closed (fixed)
Project:
BlazeMeter Module for Load and Performance Testing
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2016 at 18:21 UTC
Updated:
31 May 2016 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tamerzg commentedDo you have php cURL enabled?
If thats not the problem can you try edit line 1390 in blazemeter.module and add a backslash before CurlFile like this:
$send_script = array('script' => new CurlFile($file, 'text/plain', 'user.properties'));
replace into
$send_script = array('script' => new /CurlFile($file, 'text/plain', 'user.properties'));
Comment #3
justindodge commentedI have php cURL enabled, I can see the module loading in php's config and php info tells me that curl support is enabled.
From what I can tell (http://php.net/manual/en/class.curlfile.php) the CurlFile class is only available for php 5.5.0 and above.
Drupal 7 should support PHP 5.4+, so I think putting a shim in place that has a fallback to procedure style cURL functions or something like drupal_http_request would be nice.
Comment #4
justindodge commentedHere's a patch that works for me based on the latest 7.x dev.
This is based off of the approach that Guzzle takes: https://github.com/guzzle/guzzle/blob/3a0787217e6c0246b457e637ddd33332ef...
Comment #6
tamerzg commentedThanks for the patch, its now committed to dev.