我覺得anserw如下,如果你看一下谷歌瀏覽器developper工具的要求,你會看到,當您點擊生成的URL是例如以下:
http://zemberek-web.appspot.com/zemberek.jsp?ts=1367076182039&giris=bnfhjfttgfhffgfg&islem=ASCII_TURKCE
giris = bnfhjfttgfhffgfg =>是你的字符串發送到服務器。
所以,你可以在每一個編程語言做以下
http://zemberek-web.appspot.com/zemberek.jsp?ts=1367076182039&giris=MY_STRING&islem=ASCII_TURKCE
不要忘了UTF-8編碼的字符串的查詢字符串
UPDATE
這裏是一個我已製作的示例
public class MyRequester {
/**
* @param args
*/
public static void main(String[] args) {
HttpURLConnection conn = null;
InputStream in = null;
try {
String textToSend = "Java is cool :)";
String urlRequest = "http://zemberek-web.appspot.com/zemberek.jsp?ts=1367076182039&giris="+URLEncoder.encode(textToSend, "UTF-8")+"&islem=ASCII_TURKCE";
System.out.println(urlRequest+"\n");
conn = (HttpURLConnection) new URL(urlRequest).openConnection();
in = conn.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
StringBuilder sb = new StringBuilder();
String data = null;
while ((data = reader.readLine()) != null) {
sb.append(data);
}
System.out.println(sb.toString());
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally {
if(conn != null){
conn.disconnect();
}
if(in != null){
try {
in.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
}
控制檯輸出:
http://zemberek-web.appspot.com/zemberek.jsp?ts=1367076182039&giris=Java+is+cool+%3A%29&islem=ASCII_TURKCE
請求的結果是一個XML文檔。根據我的經驗,我會使用SAX而不是Java XML本地實現。