> I have already tried downloading the file both using GetMethod and PostMethod, > but again I get the whole response file (not the content). For me, get the content of downloaded file works fine with getResponseBodyAsStream() method (I use PostMethod)
Headers can be accessed just with getResponseHeader() method ... Damien