codeskyblue / codeskyblue/gohttpserver

脚本上传,返回成功但是看不到文件(手动上传没问题)

Open
#75 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
583
PR merge metrics
No merged PRs in 30d

Description

很简单的测试脚本

import pycurl

c = pycurl.Curl()
c.setopt(c.URL, 'http://10.251.110.38:8000')

c.setopt(c.HTTPPOST, [
('test.png', (
# upload the contents of this file
c.FORM_FILE, __file__,
)),
])

c.perform()
c.close()

返回
`{"destination":"upload","success":true}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.