python - How to use requests module to submit data with multiple same names in one post?
迷茫2017-06-12 09:19:36
0
3
769
As shown in the picture, there are three fields in the data submitted to be posted, all named tags[], but the contents are different. What should I do to post all three fields?
First line
view source
You can merge the three fields on the client side into a JSON string into one field, and then decode it when getting it on the server side and it’s OK
If you can use the python requests module, you can refer to the answer here How to submit multiple files with the same POST name with requests?
Then use the method you are accustomed to, such as