[连接技术] cmwap获取不到内容,帮忙看下!

luckyw729 2008-07-29
conn = (HttpConnection)Connector.open("http://10.0.0.172:80/"+"SichuanOnline.aspx",Connector.READ,true);
      conn.setRequestProperty("X-Online-Host","211.137.84.169:8002");
      conn.setRequestProperty("Accept", "*/*");
     
      InputStream in = conn.openInputStream();
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      int oneByte;
      while((oneByte = in.read())!=-1)
      {
        baos.write(oneByte);
      }
      byte[] b = baos.toByteArray();
      String string = new String(b,"utf-8");
      StringItem item = new StringItem("3G四川",string);
      this.form.append(item);
      this.form.append(new String(baos.toByteArray(),"utf-8"));
     
      if(in!=null)
      {
        in.close();
      }
      if(conn!=null)
      {
        conn.close();
      }
    }
    catch(Exception e)
    {
      System.out.print(e);
    }
看看有什么问题呢
用手机测试返回的信息是一段wml的代码。。。。<go href = "http://211.137.84.169:8002/SichuanOnline.aspx?t=65990"></go>.......帮忙看下呢
iwinyeah 2008-08-01
请看这两个帖子:
http://iwinyeah.iteye.com/blog/176062

http://iwinyeah.iteye.com/blog/177655

wuhua 2008-08-11
很明显是被移动网关过滤掉了。
lu_pp 2009-01-04
可能是碰见资费页了
Global site tag (gtag.js) - Google Analytics