Whats Content-Type value within a HTTP-Request when uploading content?

前端 未结 3 865
日久生厌
日久生厌 2020-11-28 12:09

I need to extract uploads from http-trafic. How could do that? First of all, the request-method will be POST. Secondly, there will be a Content-Type header-field. I do not w

3条回答
  •  天涯浪人
    2020-11-28 12:29

    If (and I by no means am saying this is the correct way) you just want to save data from a byte array, you should look at how to read the POST body at: Reading POST body with bottle.py Reading the data and then creating a new file should do the trick.

提交回复
热议问题