浏览 3612 次
锁定老帖子 主题:HTTP PUT请求时,表单数据无法传递
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2011-08-31
具体请看: SRV.4.1.1 When Parameters Are Available The following are the conditions that must be met before post form data will be populated to the parameter set: 1. The request is an HTTP or HTTPS request. 2. The HTTP method is POST. 3. The content type is application/x-www-form-urlencoded. 4. The servlet has made an initial call of any of the getParameter family of methods on the request object. 大概意思是: 以下条件是在post form数据在被移至参数集合之前必须满足的条件: 1. request是HTTP/HTTPS request 2. HTTP method是POST。 3. content type是application/x-www-form-urlencoded。 4. servlet已经对request对象中所有getParameter可以得到的参数做了初始化调用。 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2011-08-31
不过我还是想知道,如果用PUT请求,又必须提交一些表单数据,有什么好的解决方案?
|
|
返回顶楼 | |