[Catalyst] displaying csv content

Octavian Rasnita orasnita at gmail.com
Fri Feb 23 22:28:21 GMT 2007


First I have tried with text/csv but I have seen an example in Catalyst 
Cookbook with text/comma-separated-values, and that's why I have tried the 
second way.

Now I have tried again using text/csv as a Content-Type and here are the 
HTTP headers sent:

HTTP/1.1 200 OK

Date: Fri, 23 Feb 2007 22:13:30 GMT

Server: Apache/2.2.4 (Unix) mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 
Perl/v5.8.8

X-Catalyst: 5.7006

Vary: Accept-Encoding

Content-Encoding: gzip

Content-Disposition: attachment;filename="REGS--2007-02-24-2007-02-24.csv"

Content-Length: 96

Content-Type: text/csv

Set-Cookie: brk=c636810c0f434768b0e0013988a86758f9f4da34; 
domain=.tranzactiibursiere.ro; path=/

Connection: close



But it works the same as before. I think it might depend on the browser (I 
am using Internet Explorer 6).

I have succeeded (for a few times to save the file by just clicking on the 
link, but most of the times it doesn't allow saving it).



Thank you for suggestions. I don't know if there is a solution for this 
browser issue (if it is not a HTTP header issue).



Octavian


----- Original Message ----- 
From: "Jonathan Rockway" <jon at jrock.us>
To: "The elegant MVC web framework" <catalyst at lists.rawmode.org>
Sent: Friday, February 23, 2007 11:41 PM
Subject: Re: [Catalyst] displaying csv content


>
> Octavian Rasnita wrote:
>> Content-Type: text/comma-separated-values
>
> Is this correct?
>
> RFC4180 says to use text/csv, although TSV is text/tab-separated-values.
> Confusing.
>
> http://www.rfc-editor.org/rfc/rfc4180.txt
>
> Regards,
> Jonathan Rockway
>
> -- 
> package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
> $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
> ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: 
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/ 




More information about the Catalyst mailing list