Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem while downloading the data from servlet across SSL

Status
Not open for further replies.

sonashree

Programmer
May 1, 2007
1
GB
Hi All,

I am trying to download the data with the help of servlet across https.
The below mentioned settings work fine if the application is on http.

httpservletresponse.setHeader("Cache-Control", "");
httpservletresponse.setHeader("pragma", "");
httpservletresponse.setContentType("application/text");
httpservletresponse.setHeader("Content-disposition","attachment;filename=Download"+dfileid+".txt");

But , if the application is on https the above settings is working fine if I am saving the file. But at the same time if I am trying to open I am getting the below error from Internet Explorer.


"Client( IE ) is trying to search the file from the local machine and showing an alert as listed below"

---------------------------------------------------------------------------------------------
Alert from the browser
---------------------------------------------------------------------------------------------
'C:\Documents and Settings\chalagen\Local Settings\Temporary Internet Files\Content.IE5\I9FGH0RI\Download196[1].csv' could not be found. Check the spelling of the file name, and verify that the file location is correct

If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved or deleted.
---------------------------------------------------------------------------------------------

I have changed the options of Tools > Internet Options> Advanced > Do not save encrypted pages to disk.


Please do let me know the solutions for the above problem.


Waiting for response,
SonaShree

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top