I came across:
Are they the same thing? Are these capable of sending POST requests to an external API?
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityI came across:
Are they the same thing? Are these capable of sending POST requests to an external API?
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);
HavFun!