开发者社区> 问答> 正文

https请求java时,报错 400 请求报错 

九月 09, 2015 12:57:04 下午 org.apache.coyote.http11.AbstractHttp11Processor process

信息: Error parsing HTTP request header

 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

展开
收起
kun坤 2020-05-29 11:26:32 620 0
1 条回答
写回答
取消 提交回答
  • 错误再详细点######回复 @三十回头 : 重新换个tomcat试试######tomcat 控制台就返回这个错误 还没有进入 controller 就被拦截了######这个错误的日志是DEBUG级别的,你配置一下项目输出DEBUG级别的错误就能看到详细的错误信息了。###### 已经解决, 获得content-type,根据content_type区分图片提交还是普通的表单提交  
    Enumeration headerNames = request.getHeaderNames();         while (headerNames.hasMoreElements()) 

            {

                String key = (String) headerNames.nextElement();

                if(key.equals("content-type"))

                {

                content_typeValue = request.getHeader(key);

                }

            }

    2020-05-29 12:08:19
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
CDN助力企业网站进入HTTPS时代 立即下载