eyal
eyal

Reputation: 2409

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.

Upvotes: 0

Views: 529

Answers (1)

gred
gred

Reputation: 537

try to use

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

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

Upvotes: 1

Related Questions