- 476 名前:デフォルトの名無しさん [2007/07/09(月) 13:10:49 ]
- 質問です。
URLConnectionでGETパラメータを送ろうとしているんですが どの時点で送信しているのかがわかりません。 String urlString = "hoge.com/hogehoge.jsp?a1=test&a2=TEST"; URL url = new URL( urlString ); URLConnection uc = url.openConnection(); DataInputStream dis = new DataInputStream( uc.getInputStream() ); String s; while( ( s = dis.readLine() ) != null ) { System.out.println( s ); } dis.close(); リファレンス等を参考にするとopenConnection()で接続を確立しているらしいのですが ここでhogehoge.jspに通信しているんでしょうか? DataInputStream dis = new DataInputStream( uc.getInputStream() ); 上の部分でhogehoge.jspに送信してそのまま受信に入っているんでしょうか? タイミングがイマイチわからないので教えてください。
|

|