手机端上传base64位图片java后台接受
手机端post方式发送
后台报错:
Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
原因:Tomcat的header缓冲区大小不够,
解决办法;只需要在tomcat server.xml中增加
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" maxHttpHeaderSize="大小(单位字节)"/>
参考:http://blog.csdn.net/sinat_19425927/article/details/42294901
ps:本文为博主原创,转载请注明出处:http://www.cnblogs.com/Y-zhiwei/。