diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java index 3f59601..2a0bc2a 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java @@ -134,8 +134,8 @@ public class VOTableController implements VOTableViewListener { SortedMap parameters = new TreeMap<>(); parameters.put("REQUEST", Consts.QUERY_REQUEST); parameters.put("LANG", Consts.QUERY_LANG); - parameters.put("FORMAT", query); - + parameters.put("FORMAT", Consts.QUERY_FORMAT); + parameters.put("QUERY", query); Network.sendQuery(url, parameters, voTablePath); return voTablePath; } diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/utils/Consts.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/utils/Consts.java index 721ef91..2bf2c1c 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/utils/Consts.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/utils/Consts.java @@ -40,6 +40,8 @@ public class Consts { public static final String QUERY_REQUEST = "doQuery"; + public static final String QUERY_FORMAT = "votable"; + /** Constructor to hide the implicit public one. */ private Consts() { -- libgit2 0.21.2