开发者

com.sun.net.httpserver.HttpServer GET reading data problem

I'm using Http servet implements com.sun.net.httpserver开发者_如何学编程.HttpServer. on my client midlet I'm using the following url: String url = "http://localhost:22334/name=" + name; When request arrived to server, the recieved HttpExchange does not contins the "name=john" data? How can i read the data from the url? Thanks, Eyal.


try to use

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

instead of yours with the slash: http://localhost:22334/name

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜