1
lzy250 2023-03-21 23:37:54 +08:00 via iPhone
有截图吗
|
2
orangie 2023-03-21 23:46:02 +08:00
把浏览器的请求右键复制为 cURL ,再把 postman 的请求生成代码-cURL 格式,比较一下有什么区别。
|
3
jlak OP @lzy250 截图看什么,就错误 500 ,internal server error 500 generated by waitress
|
5
bjzhush 2023-03-21 23:59:19 +08:00
居然还问看什么,当然是 cookie 、postdata 、header 这些,不然难道看你屏幕啊。。
|
6
jlak OP @lzy250 图片不好发,也不知道截哪里,form-data 里 key 为 file ,value 是张图片,其他的都是 postman 默认设置,改不改回复都是 500
|
8
jlak OP import 会出错
curl 'http://dev.kanotype.net:8003/deepdanbooru/upload' \ -X 'POST' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \ -H 'Accept-Language: zh-CN,zh;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5' \ -H 'Cache-Control: max-age=0' \ -H 'Connection: keep-alive' \ -H 'Content-Length: 2833909' \ -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQBy1O41ZnosvHMe4' \ -H 'Cookie: _ga=GA1.1.1604597104.1679409085; __gads=ID=5287afcf181271f7-2201cdc33ddc0030:T=1679409084:RT=1679409084:S=ALNI_Majv5BnWggpo_Ia3MyPqX9qyX_KQA; __gpi=UID=00000bf13fc1e3e3:T=1679409084:RT=1679409084:S=ALNI_MZgDIUmmVkNR5CMhUxzj9rm9vpkuQ; _ga_KX6PXS8XCN=GS1.1.1679413871.2.1.1679415066.0.0.0' \ -H 'DNT: 1' \ -H 'Origin: http://dev.kanotype.net:8003' \ -H 'Referer: http://dev.kanotype.net:8003/deepdanbooru/' \ -H 'Upgrade-Insecure-Requests: 1' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36' \ --compressed \ --insecure |