https://linen.dev logo
#help
Title
# help
j

JCharles Deville

12/16/2023, 7:48 AM
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

Tom

12/18/2023, 9:32 AM
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

JCharles Deville

12/18/2023, 10:50 AM
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

Tom

12/18/2023, 10:53 AM
The request log is held in memory so I suggest you give the WireMock process a generous amount of heap space
👌 1
j

JCharles Deville

12/18/2023, 10:57 AM
Maybe using http2 will avoid requring this ?
t

Tom

12/18/2023, 11:08 AM
Unfortunately this will make no difference