解决方案 »

  1.   

    就是用httpClient 自己构造http请求访问那个URL
      

  2.   

    用HttpClient    public  void login() throws IOException {
            PostMethod post = new PostMethod("http://jw.zhku.edu.cn/jwmis/_data/index_LOGIN.aspx");
            post.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
            //你要登录,需要的参数
            NameValuePair[] param = {
                    new NameValuePair("Sel_Type","STU"),
                    new NameValuePair("txt_asmcdefsddsd","xxx"),
                    new NameValuePair("txt_pewerwedsdfsdff","xxxxxxx"),
                    new NameValuePair("txt_sdertfgsadscxcadsads","xxxxx") } ;
            post.setRequestBody(param);
            post.releaseConnection();        HttpClient httpClient = new HttpClient();
            httpClient.executeMethod(post);
            //这个请求对应的方法,输出是否登录成功的结果,用户json格式的字符串,
            String response = post.getResponseBodyAsString();
            //response得到这个返回值,转成json类型,就可以了啊
        }
      

  3.   

    你先浏览器模拟看看需要哪些参数,数据。然后 http 请求试试。 
      

  4.   

    httpClient 发送该网站所需要的参数,比如登陆的账号密码
    返回状态码判断是否成功
      

  5.   

    抓到两个奇葩参数dsdsdsdsdxcxdfgfg
                    fgfggfdgtyuuyyuuckjg
    不知怎么办,传递过去后返回html .... .. . . 索引和长度必须引用该字符串内的位置。
    参数名: length</font>
      

  6.   

    抓到两个奇葩参数dsdsdsdsdxcxdfgfg
                    fgfggfdgtyuuyyuuckjg
    不知怎么办,传递过去后返回html .... .. . . 索引和长度必须引用该字符串内的位置。
    参数名: length</font>此页面发现一个意外错,对此我们非常抱歉。
    请系统管理员及时与我们联系,我们会尽快解决此问题
      

  7.   

    支持2L,程序已验证,可用不过参数需要查询API,自行设置