两种方法都可以:
1、使用URL;
2、使用Socket去做,发送 Get xxx,就可以了。个人意见,仅供参考。

解决方案 »

  1.   

    能详细说说如何使用url码?
    还有如何接受SERVER的响应?
      

  2.   

    URL url = new URL("http://134.127.20.154:8000/sc/sc?city=beijing");
    URLConnection urlconn = url.openConnection();
    urlconn.setDoOutput(true);


    InputStream is = urlconn.getInputStream();
    int b;
    while((b = is.read()) != -1){
    System.out.print((char)b);
    }
      

  3.   

    谢谢 tomxutomxu(shprog) 不过
    为使么运新到InputStream is = urlconn.getInputStream();
    就抛出异常:
    java.io.IOException: Server returned HTTP response code: 401 for URL: http://ssuzssdg/kb/index.asp
      

  4.   

    sun.net.www.http.HttpClient
    网上见过介绍的,按图索骥吧
      

  5.   

    用url就是用?好带参数。
    或者你用servlet啊,然后实现doGet()方法不就可以了吗?
      

  6.   

    http://www.innovation.ch/java/HTTPClient/
    这里有一个写好的HTTPClient的library,可以参考,或者干脆直接使用,还算比较好用
    有源码的
      

  7.   

    401 Unauthorized.......
    你请求的那个网页需要登录认证