H
H
Hitsanmik2020-06-26 07:33:42
Python
Hitsanmik, 2020-06-26 07:33:42

How to simulate such a request in python using requests?

unknown.png
There he is

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_, 2020-06-26
@Hitsanmik

This is a multipart query.
Make requests.post with files argument like

requests.post('https://httpbin.org/post', files={'param_1': (None, 'param 1 value'), 'param_2': (None, 'param 2 value')})
How to attach a file is described here

D
Dr. Bacon, 2020-06-26
@bacon

1. open the dock and read how to send a file, is it difficult?
2. open google and type in "python requests form data file" is that hard too?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question