• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

webresponse from httpunit to download

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 inputStrem.read from the webresponse returns -1. Here is the webresponse:
HttpWebResponse [url=http://f02-f03.nikonipcss.com:80/P2PwebCmdController/download; headers=
CONTENT-TYPE: application/zip
CONTENT-DISPOSITION: attachment; filename=COOLPIXCONNECT_20061206_200851.zip
TRANSFER-ENCODING: chunked
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

James
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic