Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webresponse from httpunit to download

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