I'm new to locust
, and I know it has a good support for http
request in json
format.
We want to perform stress test on a http api
with pb
format, but, how to send http
request in protobuf
format by locust
(instead, jmeter
supports pb
format).
Is this the same with uploading file?
files = {
'image': open('sample.jpg', 'rb'),
}
r = requests.post('http://localhost:5000/', files=files)