It is necessary to generate the url of the type / address? Id = 1 & param = VAL1, VAL2 Trying to send param:

Connection.Response response = Jsoup.connect(url) .data("id", "1") .data("param", val1 + "," + val2) .method(Connection.Method.GET) .ignoreContentType(true) .execute(); 

The comma translates to% 2C and, as a result, the page is not found.

How to send such a parameter?

  • one
    in my opinion, just enter directly into the url . Jsoup without options passes data() arguments through UrlEncoder and replaces comma. - zRrr
  • @zRrr, and rightly so. Let the server with the routing rule. - Qwertiy

0