You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StreamsHttpPost is a class to allow sending of files and other data over HTTP post method specifically without using the cURL library or any none core PHP extensions.
Instead it makes use of the streams extension and sets the data as a stream context. This allows the sending of post requests without the need for libcurl.
--------To Use--------
$request = new StreamsHttpPost('http://example.com');
$data = array(
'foo' => 'bar',
'baz' => 'bat',
);
$page = $request->post($data);
--------To Send Files--------
$request = new StreamsHttpPost('http://example.com');