Hello ! I’m currently using WireMock in standalone...
# help
j
Hello ! I’m currently using WireMock in standalone mode, configuring it with http requests, in a python environment. So far I mainly used it to perform GET requests and for serving files. Now, I’d like to use WireMock to upload a file via a proxy. Final goal is to check that the uploaded file has the same checksum before and after it was uploaded. Any thought ? Thx for your help 😉
t
You can pull full serve events (request + response details) from WireMock’s API and then run your own checks on e.g. the request body. Use
/__admin/requests/find
to grab the appropriate requests via match criteria then inspect the
request.body
element.
j
OK thx @Tom My goal is to do an upload of a very large file (several GB). I will see if I can do this with current WireMock’s API then.
t
The request log is held in memory so I suggest you give the WireMock process a generous amount of heap space
👌 1
j
Maybe using http2 will avoid requring this ?
t
Unfortunately this will make no difference