I am trying to send a string containing angle brackets ("<" and “>”) via POST. No matter what I do, PHP strips the brackets and the text between them from the text sent. I am POSTing to a remote application that requires the literal brackets, it will not accept < and >. I have tried single quotes, double quotes and the backslash escape character to no avail.
[php]
$data=“data”;
$url = ‘https://Axxxxxxxxxx’;
$opts = array(‘http’ => array (‘method’ => ‘POST’,‘header’ => “Content-type: text/xml; charset=UTF-8”, ‘content’ => $data) );
$context = stream_context_create($opts);
[/php]
Only the word “data” is sent.
The same thing happens with a form
[php]
The entire string “data” can be saved to a file, but simple will not pass through the POST.
Is there anything that can be done?
Thanks.