title: java URL working on browser but not in client program
body: <p>Client JAVA Program part :</p>
  
  <pre><code>    try
                              {
  
                               String downloadUrl1="https://www......&amp;downloaded=1";
                               url = new URL(downloadUrl1);
                               URLConnection myURLConnection = url.openConnection();
                               myURLConnection.connect();
                               updateMsg.setText("Success");
                               logger.debug(downloadUrl1);
                              }
                              catch (MalformedURLException e) {                              
                                  // new URL() failed
                                  logger.debug(e);
                              } 
                              catch (IOException e) {   
                                  // openConnection() failed
                                  logger.debug(e);
                              }
  </code></pre>
  
  <p>The Success Message is shown , the url is also printed in log file , no Exception is thrown .</p>
  
  <p>Server side Program Part :</p>
  
  <pre><code>$downloaded_status_by_clnt = Sanitize::escape ( $_GET ['downloaded'] );
  
   if($downloaded_status_by_clnt=='1')
   {
       // Do some update                             
   }
   else
   {
      // Some file reading code
   }
  
   exit(0);
  </code></pre>
  
  <p>The update is working when I paste the URL in browser , but not working through program.</p>
  
  <p>Can Anyone please suggest a solution ?              </p>