I need to send HTML components in the BODY of a POST throught Guzzle.
These are the HTML TAGS:
$strData = "<p style='background:url(/clear.png?org_id=1snn5n9w&session_id=123456789&m=1)'>< / p >
<img src='/clear.png?org_id=1snn5n9w&session_id=123456789&m=2' alt=''>";
My Guzzle code is:
$client = new GuzzleHttp\Client(['base_uri' => 'https://thirdURL.com/Test.htm', 'http_errors'=>true]);
$resH = $client->post('https://thirdURL . com/Test.htm',[
'form_params' =>['body' => $strData]]);
Is this the correct way to send this kind of objects via Guzzle? Thanks for your help.
Regards.