泽西岛客户给我的结果与其他客户不同。

Jersey client gives me different result than other client.

我正在为 Java 制作几何短跑 API。我正在使用 WireShark 找出一些请求应该是什么样子,然后尝试使用 this, then I write a some java code doing the request and parsing the response. But there's a request, that works inside the restlet client:

做一些请求

所以我得到:

1:TheRealC05:2:42854106:13:77:17:52:10:17:11:12:3:1051:46:1467:4:23:8:0:18:1:19:0:50:0:20::21:129:22:51:23:30:24:32:25:1:26:18:28:1:43:14:48:1:30:0:16:7450834:31:0:44::45::49:0:29:1

但不适用于 Jersey 客户端:

final Form form = new Form();
form.param("secret", getSecret());
form.param("gameVersion", "21");
form.param("binaryVersion", "34");
form.param("targetAccountID", "7450834");
final String text = this.httpClient.target(getDatabase()
        .path("/getGJUserInfo20.php")).request()
        .buildPost(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE))
        .invoke(String.class);

我得到 -1

那么这两个请求有什么区别呢?

问题是,我正在扩展数据库的路径,所以该方法得到了错误的数据库 url。