为什么用get方式的时候用response.setCharacterEncoding(encoding);
用post方式的时候用request.setCharacterEncoding(encoding);
很好理解。
get是通过response从服务器拿信息.
post 是用request给服务器发信息.
用post方式的时候用request.setCharacterEncoding(encoding);
很好理解。
get是通过response从服务器拿信息.
post 是用request给服务器发信息.
本文解释了为何在使用GET请求时需通过response设置字符编码,而在POST请求中则需通过request进行设置的原因。GET请求是从服务器获取信息,而POST则是向服务器发送数据。
4794

被折叠的 条评论
为什么被折叠?



