server result comes with an error
<p>iam doing a post request in php and the server sends back some text when the post is complete. this is the code:</p>

<pre><code>&lt;?php  // Create map with request parameters
$params = array ('username' =&gt; 'loginapi', 'password' =&gt; 'myapilogin', 'term'=&gt;  'tema'     );

// Build Http query using params
$query = http_build_query ($params);

// Create Http context details
$contextData = array (
            'method' =&gt; 'POST',
            'header' =&gt; "Connection: close\r\n".
                        "Content-Length: ".strlen($query)."\r\n",
            'content'=&gt; $query );

// Create context resource for our request
$context = stream_context_create (array ( 'http' =&gt; $contextData ));

// Read page rendered as result of your POST request
$result =  file_get_contents (
              'http://infolinetest.nandiclient.com/search/searches/requestData.xml',  // page url
              false,
              $context);

// Server response is now stored in $result variable so you can process it

var_dump($result);

?&gt;
</code></pre>

<p>the problem is that the following error occurs eventhough the result i want follows:</p>

<pre><code>Notice: file_get_contents() [function.file-get-contents]: Content-type not specified      
assuming application/x-www-form-urlencoded in C:\xampp\htdocs\directory               \Search_Result.php on line 49
string(269) " Nandimobile
19 Banana Street, American House East legon
IT Software products and services0302503313 0244709575 " 
</code></pre>

<p>Thanx in advance</p>
