I came across:

Are they the same thing? Are these capable of sending POST requests to an external API?


1 Answer 1


As you might already figured out, yes its the same and yes thats the way it works...

As described in the manual:

use Joomla\Http\HttpFactory;

// Create an instance of a default Http object.
$http = Http\HttpFactory::getHttp();

// Prepare the update data.
$data = array('make' => 'Holden', model => 'EJ-Special');

// Invoke the GET request.

$response = $http->post('http://api.example.com/cars/1', $data);


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.