feat(ahc): adjust postHttps() method
This commit is contained in:
parent
05a290733b
commit
58c5e67b81
|
@ -33,19 +33,19 @@ import java.util.Scanner;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
static String URL = "https://dedriver.org";
|
static String URL = "http://83.223.94.182";
|
||||||
static String PORT = "42001";
|
static String PORT = "42001";
|
||||||
static String ROUTE = "/postdata";
|
static String ROUTE = "/postdata";
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("Hello world!");
|
System.out.println("Hello world!");
|
||||||
postHttps("uuid", 87.263783, 52.9019052,
|
postHttps("uuid", 87.263783, 52.9019052,
|
||||||
1642512736, "alias", "0");
|
"1642756774000", "alias", "0");
|
||||||
System.out.println("Done!");
|
System.out.println("Done!");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void postHttps(final String uuid, final double latitude, final double longitude,
|
static void postHttps(final String uuid, final double latitude, final double longitude,
|
||||||
final long timestamp, final String alias, final String vehicle) {
|
final String timestamp, final String alias, final String vehicle) {
|
||||||
KeyStore trustStore =
|
KeyStore trustStore =
|
||||||
null;
|
null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue