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?
迷茫2017-06-12 09:21:36
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
巴扎黑2017-06-12 09:21:36
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?
parameters = [('tags', 'test'), ('tags', 'submit'), ('tags', 'tool')]
Then use the method you are accustomed to, such as
r = requests.get("http://httpbin.org/get", params=parameters )