Problem on saving data on server in android
<p>Hello All I am sending signup data to server but when line of my code 
dos = new DataOutputStream (urlConn.getOutputStream()); encounters it throws an IOException "Permission Denied"
I have used the same code for another server before also and that time it worked fine.
I am not getting what is problem with this 
plz Help me
MY CODE IS 
try
          {</p>

<pre><code>        URL                url; 
</code></pre>

<p>//          URLConnection      urlConn; 
            DataOutputStream   dos; 
            DataInputStream    dis;</p>

<p>/<strong><em></strong>---------------------THIS IS ADDRESS LINK WHERE WE HAVE TO SEND DATA------------</em>***/<br>
            String server_url_string = "http:----"signup.php";</p>

<pre><code>        url = new URL(server_url_string);
</code></pre>

<p>//           urlConn =  url.openConnection();
            HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();</p>

<pre><code>        urlConn.setDoInput(true); 

        urlConn.setDoOutput(true); 

        urlConn.setUseCaches(false); 

        urlConn.setRequestProperty ("METHOD", "POST");


        dos = new DataOutputStream (urlConn.getOutputStream());
</code></pre>

<p>/<strong>*<em>-------------PREPARING STRING OF DATA TO BE SEND ON SERVER------------------</em></strong>/</p>

<pre><code>        String data_to_be_send = "signupdata=first_name="+first_name_str+":"+
                                 "oomplast_name="+last_name_str+":"+
                                 "oomppassword="+password_str+":"+
                                 "oompprimary_email="+email_str;


        Log.i("SERVER URL ",server_url_string);
        Log.i("SENDING DATA ",data_to_be_send);

        dos.writeBytes(data_to_be_send); 

        dos.flush(); 

        dos.close();
</code></pre>

<p>/** ------ The server responds by saying "Registration successfull." or "particular message or Invalid Data" -----*/</p>

<p>/<strong>-------------------RETRIEVING MESSAGE CAME FROM SERVER----------------</strong>/<br>
            dis = new DataInputStream(urlConn.getInputStream()); 
            Log.i(" PASSED ","dis INITIALIZED");
            server_message = dis.readLine(); 
            Log.i(" PASSED ","server_message INITIALIZED");
            Log.i("SERVER RESPONSE",server_message+""); 
}
catch (MalformedURLException mue) 
          { 
              Log.i("EXCEPTION GENERATED MalformedURLException", " "+mue.getMessage());</p>

<pre><code>      } 
      catch (IOException ioe) 
      { 
          Log.i("EXCEPTION GENERATED IOException ", " "+ioe.getMessage());
      }
</code></pre>
