if you used fsockopen try:
fputs($sk, $str, strlen($str));
while(!feof($sk)){
$strResp.=fgets($sk,80)."<br>";
}
fclose($sk);
echo "<br>$strResp"; br>$strResp";
where $str is your XML and $strResp is what the server responded. You'll be getting the headers as well though, so you'll have to reformat $strResp