# How to see download file response on console???

**URL:** <https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727>\
**Category:** Gatling (Open-Source)\
**Created:** [November 20, 2014, 3:24pm UTC](https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727 "2014-11-20T15:24:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![47saikumar](https://avatars.discourse-cdn.com/v4/letter/4/a9a28c/32.png) [@47saikumar](https://community.gatling.io/u/47saikumar)\
**Post date:** [November 20, 2014, 3:24pm UTC](https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727/1 "2014-11-20T15:24:33Z")

</div>

Hi,

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

Thanks

---

<div class="post-metadata">

**Author:** ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)\
**Post date:** [November 20, 2014, 5:53pm UTC](https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727/2 "2014-11-20T17:53:28Z")

</div>

Have you tried this:

[http://gatling.io/docs/2.0.3/general/configuration.html?highlight=logback.xml](http://gatling.io/docs/2.0.3/general/configuration.html?highlight=logback.xml)

---

<div class="post-metadata">

**Author:** ![47saikumar](https://avatars.discourse-cdn.com/v4/letter/4/a9a28c/32.png) [@47saikumar](https://community.gatling.io/u/47saikumar)\
**Post date:** [November 27, 2014, 6:04pm UTC](https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727/3 "2014-11-27T18:04:19Z")

</div>

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??

---

<div class="post-metadata">

**Author:** ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)\
**Post date:** [November 27, 2014, 10:54pm UTC](https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727/4 "2014-11-27T22:54:44Z")

</div>

Check out bodyString -

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

`

By the way, have you explored the quick reference? [http://gatling.io/docs/2.0.3/cheat-sheet.html](http://gatling.io/docs/2.0.3/cheat-sheet.html)

---

<div class="post-metadata">

**Author:** ![47saikumar](https://avatars.discourse-cdn.com/v4/letter/4/a9a28c/32.png) [@47saikumar](https://community.gatling.io/u/47saikumar)\
**Post date:** [December 1, 2014, 6:40pm UTC](https://community.gatling.io/t/how-to-see-download-file-response-on-console/1727/5 "2014-12-01T18:40:26Z")

</div>

Thanks john…
