Package | Description |
---|---|
cn.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
Modifier and Type | Method and Description |
---|---|
MultipartOutputStream |
MultipartOutputStream.write(String formFieldName,
Object value)
添加Multipart表单的数据项
--分隔符(boundary)[换行] Content-Disposition: form-data; name="参数名"[换行] [换行] 参数值[换行] 或者: --分隔符(boundary)[换行] Content-Disposition: form-data; name="表单名"; filename="文件名"[换行] Content-Type: MIME类型[换行] [换行] 文件的二进制内容[换行] |
Copyright © 2024. All rights reserved.