Uploading an image using C# and WebRequest?

前端 未结 6 1856
名媛妹妹
名媛妹妹 2020-12-11 10:22

Here is the working code in Python (using cURL):

#!/usr/bin/python

import pycurl

c = pycurl.Curl()
values = [
          (\"key\", \"YOUR_API_KEY\"),
               


        
6条回答
  •  情歌与酒
    2020-12-11 11:09

    Try adding the content-type for the jpg into your multipart boundary.

    See this uRL for examples (at the end)

    http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2

提交回复
热议问题