SSL and content-type

This is a multi-part message in MIME format.

------_=_NextPart_001_01C6BDBE.F561892F
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am trying to switch to a secure server. Currently, when running an
unsecure server I call a php page, called download.php, and it prints
out two headers and then a comma separated list that it will drop into a
file that I can use a spreadsheet on. The code looks like this:

header("Content-Type: text/comma-separated-values");
header("Content-Disposition: application;
filename=3DClassRoster.csv");
$class =3D $classid;
$tdata =3D tpl_class_roster('download');
$csv->show($tdata);

The header() routine adds the stirngs to the headers and the $csv-show()
has the two dimensional array displayed in a comma separated list
format. This works perfectly fine when I don't use a secure server and
access this using http:.

When I switch to a secure server all the other pages work fine, but this
one the browser complains that it can't find or access the file.
now if I comment out the first header line:

/*
header("Content-Type: text/comma-separated-values");
*/
header("Content-Disposition: application;
filename=3DClassRoster.csv");
$class =3D $classid;
$tdata =3D tpl_class_roster('download');
$csv->show($tdata);

Then I do get the two dimensional array to show up on the screen in the
comma seperated list format as plain text, it doesn't bring up the
spreadsheet.

Is there something else I need to do, add another header or set some
httpd setting to allow the Content-Type header above to operate in the
same manner that it does when not running httpd in secure mode ?

Is this some browser option that does not like the Content-Type header ?

Any pointers would be appreciated.

Thanks

Chris Kottaridis
Customer Support Engineer
Wind River Systems
719-522-9786

Customer Support Users' Guide (CSUG) for our support processes at:
http://www.windriver.com/support/resources/csug.pdf
<http://www.windriver.com/support/resources/csug.pdf>
To create and update your TSRs online, visit our TSR Manager (login
required) at:
https://www.windriver.com/windsurf/tsrview/
<https://www.windriver.com/windsurf/tsrview/>
Tech Tips, FAQs, Discussion Group, Proactive Alert and lot more at:
http://www.windriver.com/windsurf/tsrview/
<http://www.windriver.com/windsurf/tsrview/>


------_=_NextPart_001_01C6BDBE.F561892F
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D962211503-12082006>I am =
trying to
switch to a secure server. Currently, when running an unsecure server I =
call a
php page, called download.php, and it prints out two headers and then a =
comma
separated list that it will drop into a file that I can use a =
spreadsheet on.
The code looks like this:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006>      =
header("Content-Type:
text/comma-separated-values");<BR>     
header("Content-Disposition: application;
filename=3DClassRoster.csv");<BR>      $class =
=3D
$classid;<BR>      $tdata =3D
tpl_class_roster('download');<BR>     
$csv->show($tdata);<BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D962211503-12082006>The =
header() routine
adds the stirngs to the headers and the $csv-show() has the two =
dimensional
array displayed in a comma separated list format. This works =
perfectly fine
when I don't use a secure server and access this using
http:.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D962211503-12082006>When I =
switch to a
secure server all the other pages work fine, but this one the browser =
complains
that it can't find or access the file.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D962211503-12082006>now if =
I comment out
the first header line:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006>/*</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006> header("Content-Type:
text/comma-separated-values");</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN
class=3D962211503-12082006>*/<BR>     
header("Content-Disposition: application;
filename=3DClassRoster.csv");<BR>      $class =
=3D
$classid;<BR>      $tdata =3D
tpl_class_roster('download');<BR>     
$csv->show($tdata);<BR></DIV></SPAN></FONT>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial size=3D2>Then I =
do get the
two dimensional array to show up on the screen in the comma seperated =
list
format as plain text, it doesn't bring up the =
spreadsheet.</FONT></SPAN></DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial size=3D2>Is =
there something
else I need to do, add another header or set some httpd setting to allow =
the
Content-Type header above to operate in the same manner that it does =
when not
running httpd in secure mode ?</FONT></SPAN></DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial size=3D2>Is =
this some browser
option that does not like the Content-Type header ?</FONT></SPAN></DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial size=3D2>Any =
pointers would
be appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial
size=3D2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=3D962211503-12082006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Chris =
Kottaridis</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Customer Support =
Engineer</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Wind River =
Systems</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>719-522-9786</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><SPAN =
class=3D971590420-14032006><FONT
face=3DArial size=3D2><BR>Customer Support Users' Guide (CSUG) for our =
support
processes at:<BR></FONT><A
title=3Dhttp://www.windriver.com/support/resources/csug.pdf= 20
href=3D"http://www.windriver.com/support/resources/csug.pdf" ><FONT
title=3Dhttp://www.windriver.com/support/resources/csug.pdf face=3DArial =

size=3D2>http://www.windriver.com/support/resources/csug.pdf</FONT></A><B=
R><FONT
face=3DArial size=3D2>To create and update your TSRs online, visit our =
TSR Manager
(login required) at:<BR></FONT><A
title=3Dhttps://www.windriver.com/windsurf/tsrview/
href=3D"https://www.windriver.com/windsurf/tsrview/"><FONT
title=3Dhttps://www.windriver.com/windsurf/tsrview/ face=3DArial
size=3D2>https://www.windriver.com/windsurf/tsrview/</FONT></A><BR><FONT =

face=3DArial size=3D2>Tech Tips, FAQs, Discussion Group, Proactive Alert =
and lot
more at:<BR><A title=3Dhttp://www.windriver.com/windsurf/tsrview/
href=3D"http://www.windriver.com/windsurf/tsrview/"><FONT
title=3Dhttp://www.windriver.com/windsurf/tsrview/ face=3DArial
size=3D2>http://www.windriver.com/windsurf/tsrview/</FONT></A></FONT><FON=
T
face=3D"Times New Roman" size=3D3> </FONT></SPAN></FONT></DIV>
<DIV> </DIV></BODY></HTML>

------_=_NextPart_001_01C6BDBE.F561892F--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users [at] modssl.org
Automated List Manager majordomo [at] modssl.org
chris.kottaridis [ Sa, 12 August 2006 05:25 ] [ ID #1427999 ]
Webserver » gmane.comp.apache.mod-ssl.user » SSL and content-type

Vorheriges Thema: problem with redhat enterprise linux 4 (rhel4 rhe4)
Nächstes Thema: SSLRequire with Request_URI