Re: MOD_PROXY Open CSV Content Into Excel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20.10.2010 17:50, Todd Simons wrote:

Hello All
We develop web applications using Weblogic and JSP pages. Our web app
has the functionality to export to excel where data is pulled from a
database and presented to the web client, at that point the web client
recognizes the content stream and opens excel with the CSV file. The
code from the JSP page is below:
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
response.setHeader("Cache-control", "no-store, no-cache, must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Content-Type", "text/html; charset=" + encoding);
response.setHeader("Pragma", "no-cache");
response.setHeader("Content-Disposition", dispType + ";
filename=grid.csv");
Where
dispType = "attachment"
encoding = " UTF-8 "
When accessing the Web app directly, this works great, but when
accessing through an Apache Reverse Proxy, the CSV content is displayed
in the browser window.
Our Reverse Proxy settings are listed below.
<!-âhttp.conf snip-->
ProxyRequests Off
ProxyPreserveHost Off
ProxyPass /app/ http://internalhost/app/
ProxyPassReverse /app/ http:// internalhost / app /
<http://internalhost/app/>
<Proxy "https://*/app/*";>
Order deny,allow
Deny from All
#Allow from Us
Allow from 10. 0 .0.0/20
#Allow from Customer
Allow from 162. x . x.x /24
</Proxy>
<!-âhttp.conf snip-->
Has anyone seen this before?

Can you check the headers that are sent to the browser by using a browser plugin (Firefox: Firebug etc., MSIE: Fiddler etc.). Any differences between direct access and proxy?

Regards,

Rainer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux