构造一个post请求方式为 aa=1&bb=2这是传输字符串
数组如何传输
如:
<input type="checkbox"  name="cc" value="1">
<input type="checkbox"  name="cc" value="3">如何构造?

解决方案 »

  1.   

    POST / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
    Accept-Language: zh-cn
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    Host: 127.0.0.1:8080
    Content-Length: 23
    Connection: Keep-Alive
    Cache-Control: no-cachecc=1&cc=3&submit=submit
    ----------------
    相关部分自己修改吧
      

  2.   

    试过不行
    显示NullPointerException 证明cc不能找到
    我用的是jsp :request.getParameterValues("cc"); 取出为null