out.print("<form name=form1 method=post action=post.jsp>"+
"<input type=text value=hello name=t>"+
"<input type=submit>"+
"</form>"+
"<script>document.form1.submit();</script>");

解决方案 »

  1.   

    不是吧,我们用的最多的就是post啊
    get能够传递的字符太少
      

  2.   

    我想楼上的没明白楼主的意思是在app里面post请求,然后读取数据我也想知道,试验了几次都不成功
      

  3.   

    你用socket和服务器建立连接,发送http post 请求,就好象一个基于socket的c/s通讯软件
    http post 请求的内容应该知道吧?
      

  4.   

    用socket的话好像不像楼上的说的那么简单吧你必须要模拟浏览器,需要研究一下http协议要发送的信息很多,并且极容易出错要别人看java.net.*的,你究竟会不会呀,你牛就写个程序出来给我看看我开帖子送你分
      

  5.   

    不知你的意思是不是這樣
    try{
      URL u = new URL("http://websit");
      URLConnection uc = u.openConnection();
      uc.setDoOutput(true);
      OutputStreamWriter out = new OutputStreamWriter(
                                 new BufferedOutputStream(uc.getOutputStream()));
      out.write("username=aaaa&password=bbbbbb\r\n");
      out.flush;
      out.close;
    }
    catch(IOException e){}
      

  6.   

    这个是GET方式的,我要实现的是POST。GET方式的我使用socket都可以实现,但是POST没有研究过最好有现成的东西用