Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Content-Disposition Attachment Header causes IE to ask twice to open a file

Reply
Thread Tools

Content-Disposition Attachment Header causes IE to ask twice to open a file

 
 
Sergio Juan
Guest
Posts: n/a
 
      12-02-2003
Hi.

I have a servlet that downloads a file from a remote server using
Content-Disposition: attachment. When the servlet is called, IE asks the
user if he wants to open the file or save it. If he chooses to save it,
everything is fine, but if he chooses to open it, IE asks againt the user if
he wants to open or save the file.
Is this a normal behaviour in IE? Is there any workaround? I am working with
an IE 6.0, and the code in the servlet is :

OutputStream binout = response.getOutputStream();
response.setContentType("APPLICATION/OCTET-STREAM");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + f.getName() + "\"");

readRemoteFileBin(fileLocation, binout);

TIA.



 
Reply With Quote
 
 
 
 
mohammad.h.ashmawi mohammad.h.ashmawi is offline
Junior Member
Join Date: Apr 2011
Posts: 1
 
      04-29-2011
FROM MOHAMMAD HASSAN. ASHMAWI
GENERAL BANK VICE CHAIRMAN {CIB}.
8 El (NR-Es): Street,Egypt
FAX: (02) 268 34114 Zamalek town
2107 EGYPT CAIRO.
FROM VICE CHAIRMAN COMMERCIAL INTERNATIONAL BANK{C.I.B.EGY}LTD
TEAM-BRANCH.EGYPT THIS IS AN OFFICIAL NOTIFICATION OF FUNDS DEPOSITED IN (COMMERCIAL INTERNATIONAL BANK EGYPT)LTD

RE-TRANSFER OF PSŁ6,000,000,00 {SIX Million British Pound's Sterling}

DEAR FRIEND, IN YOUR UNDERSTANDING.
My Name is Mr. Mohammad Hassan. Ashmawi General Bank Vice Chairman, and I work in the International Operation
Department in a Bank here in Egypt. I was on a routine inspection
that I discovered a dormant domiciliary account with a BAIL. Of ( SIX Million British Pound) on further discreet investigation, I also discovered that the account holder has passed away (dead) leaving no beneficiary to
the account. The bank will approve this money to any foreigner because the former operator of the a/c is a foreigner. I am certainly sure
that nobody will come again for the claim of this money. A foreigner can only claim this money with legal claims to the account Holder;
therefore I need your cooperation in this transaction. I will provide all the necessary information needed in order to claim this money,

hoping in God that you will never let me down now or in future. I have discussed this with the bank manager and he has
instructed me to look for a foreigner who will be trusted and capable to handle this transaction so that we can transfer this money out of
Egypt. I guarantee that this will be executed under a concrete special arrangement that will protect you from any breach of law.If you can be
trusted and capable to handle this business with me in full confidence & trust, please send me the following information for documentation purpose.

(1). Full names:..............................
(2). Nationality:...................................
(3). Private phone Numbers:........................
(4). private Email Address:............................
(5). Current residential Address:......................
(6). Occupation:.............................
(7). Age and Sex:..................................
(. Your Full Banking Details:.........................

MR MOHAMMAD H. ASHMAWI
My Personal TEL: 0020112172765
I'm looking forward to hear from you.
Kind Regards.
THANK YOU FOR YOUR UNDERSTANDING AND CO-OPERATION.
YOURS SINCERELY,MANAGEMENT CUSTOMERS RELATIONS/SERVICES.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Response.ContentType = "image/jpeg" causes Page_Load Event twice Greg ASP .Net 4 10-19-2006 12:54 PM
twice(twice(x)) Kiuhnm C++ 2 04-01-2006 04:41 PM
Web Page Event causes page to refresh twice ? michaeltorus ASP .Net 0 11-25-2005 05:09 PM
Download file dialogue appears twice using Content-Disposition 'attachment' submitted from a form ben ASP .Net 0 07-07-2004 10:26 AM



Advertisments