0

我正在使用 Http servet 实现 com.sun.net.httpserver.HttpServer。在我的客户端 midlet 上,我使用以下 url: String url = "http://localhost:22334/name=" + name; 当请求到达服务器时,收到的 HttpExchange 不包含“name=john”数据?如何从 url 读取数据?谢谢,埃亚尔。

4

1 回答 1

1

尝试使用

String url = "http://localhost:22334?name=" + name;

而不是你的斜杠:http://localhost:22334/name

于 2011-08-02T11:03:27.333 回答