I have a endpoint I want to test out. I'll call GET
with it and it's supposed to download a zip file containing a csv file. I want to verify that the contents of that csv file is correct.
When I hit the endpoint in Postman, the headers look something like this:
content-disposition: "attachment; filename=filename.zip"
content-encoding: gzip content-length: 4321
content-type: "application/zip"
vary: Accept-encoding
On the Rest-Assured response though, when I printed out response.contentType()
, I got text/html; charset=utf-8
. I was going to try to try to get the response byte in bytes[]
and then see if it matches the content I'm expecting in the CSV file but since the content-type
doesn't match what I'm expecting, I don't think I can do that.
Also, how do I check the content-disposition
of my response?
Any pointers?
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.