Url format in android
My application should send a https request. 

Every time I get an exception from it. If I uncomment     `url = "http://www.example.com"` it works perfect. Otherwise it throws an exception "`Illegal character in scheme at index 3`".

How to fix it?

       public class TestHttpManager {
            
       private final static String mask= "httрs://%s/action/key=%s&param1=%s&param2=%s&param3=%s";
             
       public static void Send() throws IOException, URISyntaxException {
               if (....)
                  url = String.format(UrlMask, "anyHostName.com", "param1", "param2", "param3");
            			 
                 //url = "http://www.example.com";
                 HttpClient client = new DefaultHttpClient();
                 HttpGet request = new HttpGet();
                 request.setURI(new URI(url));
                 client.execute(request);
            }
            
         }
Url format in android
===

My application should send a https request. 

Every time I get an exception from it. If I uncomment     `url = "http://www.example.com"` it works perfect. Otherwise it throws an exception "`Illegal character in scheme at index 3`".

How to fix it?

       public class TestHttpManager {
            
       private final static String mask= "httрs://%s/action/key=%s&param1=%s&param2=%s&param3=%s";
             
       public static void Send() throws IOException, URISyntaxException {
               if (....)
                  url = String.format(UrlMask, "anyHostName.com", "param1", "param2", "param3");
            			 
                 //url = "http://www.example.com";
                 HttpClient client = new DefaultHttpClient();
                 HttpGet request = new HttpGet();
                 request.setURI(new URI(url));
                 client.execute(request);
            }
            
         }