How to see download file response on console???


Can anybody please explain that how to see the download attachment response on console while doing get for download attachments???


Have you tried this:

Ya john…I tried…But my context is I want to store that response in one variable with saveAs and I want to print it on console with session…Any thoughts??

Check out bodyString -

http( description )
.get( url )
.check( bodyString.saveAs( “contents” ) )
.exec( session => {
println( “The request returned:\n” )
println( session( “contents” ).as[String] )


By the way, have you explored the quick reference?

Thanks john…