|  |  |  | 
|---|
|  |  |  | public static String post(String url, String data, String contentType, boolean ignoreSSL) { | 
|---|
|  |  |  | return connection(url, "POST", data, contentType, ignoreSSL,null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public static String sendGet(String url) { | 
|---|
|  |  |  | if(url.startsWith("https://")){ | 
|---|
|  |  |  | return connection(url, "GET", "", "text/plain; charset=utf-8", true,null); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | return connectionHttp(url, "GET", "", "text/plain; charset=utf-8",null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public static String postJson(String url, String data) { | 
|---|
|  |  |  | if(url.startsWith("https://")){ | 
|---|
|  |  |  | return connection(url, "POST", data, "application/json", true,null); | 
|---|