Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

webresponse from httpunit to download  RSS feed

James Yang
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was using webresponse to download a file when a form value has been checked and submitted. The response from the webform.submit has a header with an attachment. But the from the webresponse returns -1. Here is the webresponse:
HttpWebResponse [url=; headers=
CONTENT-TYPE: application/zip
SERVER: Apache-Coyote/1.1
DATE: Mon, 11 Dec 2006 03:58:02 GMT ]

Here is the part of the code:

My question is how to download the attached zip file with webresponse.

Thanks a lot

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!