Java – AddUser – ConnectionRest
Posted on: 23 novembre 2021 /
Categories:
public class ConnectionRest extends Thread{
...
public String get(String pMethode) throws IOException, JSONException {
...
if (!pMethode.equals("POST") && (jsonObj != null)&&!pMethode.equals("CREATE_USER")) {
...
}
...
if (pMethode.equals("CREATE_USER")) {
pMethode = "POST";
url = URL + "register.php";
}
try {
...
} finally {
...
}
...
}
...
}