浏览器中:
Request URL: http://192.168.11.193:8083/api/xxx/image/upload/true?type=1
POST /api/intellif/image/upload/true?type=1 HTTP/1.1
Host: 192.168.11.193:8083
Connection: keep-alive
Content-Length: 6742
Pragma: no-cache
Cache-Control: no-cache
Authorization: Bearer 147e9f25-3fb1-42fb-bc05-21b2e5c8b501
Origin: http://192.168.11.193:8066
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarya9MF0hb2gtA3RQ0K
Accept: */*
Referer: http://192.168.11.193:8066/app/userManagement/newStudentsManagement
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7
Request Payload:
------WebKitFormBoundarya9MF0hb2gtA3RQ0K
Content-Disposition: form-data; name="file"; filename="2018-02-27-14-08-56-478_format_f.jpg"
Content-Type: image/jpeg
------WebKitFormBoundarya9MF0hb2gtA3RQ0K--
```java
java.lang.IllegalArgumentException: MIME type may not contain reserved characters
at org.apache.http.util.Args.check(Args.java:36)
at org.apache.http.entity.ContentType.create(ContentType.java:227)
at org.apache.http.entity.ContentType.create(ContentType.java:239)
at org.apache.http.entity.mime.content.FileBody.<init>(FileBody.java:85)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$ViewableFileBody.<init>
(HTTPHC4Impl.java:1240)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sendPostData(HTTPHC4Impl.java:1313)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.handleMethod(HTTPHC4Impl.java:629)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:450)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
at java.lang.Thread.run(Unknown Source)
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.