开发者

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

开发者 https://www.devze.com 2023-03-24 07:24 出处:网络
I\'m using Http servet implements com.sun.net.httpserver开发者_如何学编程.HttpServer. on my client midlet I\'m using the following url:

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

精彩评论

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