之前的接口測試要求頭部加上
進行圖檔上傳時,需要去掉。
請求體顯示如下:
POST http://測試環境IP:端口号/接口請求位址
POST data:
--UdnBRO96Ko0vytCK0vO0eT4J2eaKZEgSIUvn
Content-Disposition: form-data; name="appid"
App3680197524
--UdnBRO96Ko0vytCK0vO0eT4J2eaKZEgSIUvn
Content-Disposition: form-data; name="timestamp"
1530152807
--UdnBRO96Ko0vytCK0vO0eT4J2eaKZEgSIUvn
Content-Disposition: form-data; name="sign"
ef41d8fc8b321db870064debd418ff9f19c4df96ce818c86fa110a887380394e
--UdnBRO96Ko0vytCK0vO0eT4J2eaKZEgSIUvn
Content-Disposition: form-data; name="my_file"; filename="g (1).jpg"
Content-Type: multipart/form-data
<actual file content, not shown here>
--UdnBRO96Ko0vytCK0vO0eT4J2eaKZEgSIUvn--
[no cookies]
Request Headers:
Connection: keep-alive
charset: utf-8
Content-Length: 42201
Content-Type: multipart/form-data; boundary=UdnBRO96Ko0vytCK0vO0eT4J2eaKZEgSIUvn
Host: 59.108.232.202:81
User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_161)