It's not always things work as expected. For those cases there's a handy CLI flag, --http-debug, that is good to be aware of.
Given the following script:
If we run it using k6 run --http-debug script.js we get output that looks like this:
If we want to get the full response body printed as well we run the script with k6 run --http-debug="full" script.js instead.