|
50精币
求下易语言POST上传图片写法。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form enctype="multipart/form-data" action="http://www.xxx.com/api/pcAutoCollector/uploadFile" method="post">
<input type="file" name="file" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
POST /api/pcAutoCollector/uploadFile HTTP/1.1
Host: www.xxx.com
Connection: keep-alive
Content-Length: 365142
Cache-Control: max-age=0
Origin: null
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryinklb2N5pMntWN8Q
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: __guid=21783101.617781242948642400.1576492307988.7634; JSESSIONID=12B6DBE02332FBDCDE6564C46C8E4D0D; monitor_count=4
------WebKitFormBoundaryinklb2N5pMntWN8Q
Content-Disposition: form-data; name="file"; filename="1.jpg"
Content-Type: image/jpeg
����
|
最佳答案
查看完整内容
https://bbs.125.la/forum.php?mod=viewthread&tid=14226157
|