Uploading an image using C# and WebRequest?

前端 未结 6 1849
名媛妹妹
名媛妹妹 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:08

    You should correctly form a multipart POST request. See an example here: Upload files with HTTPWebrequest (multipart/form-data)

提交回复
热议问题