Okay, so there's a link in a web page that the browser sees that tells it "when following *this* link, ask for a CSV file, as opposed to that normal HTML hooey you usually ask for." How do we do that, if not thru a URL?
Or maybe I'm missing something really obvious... On Thu, Feb 17, 2011 at 9:36 AM, Dave Rolsky <auta...@urth.org> wrote: > On Wed, 16 Feb 2011, will trillich wrote: > > Hmm. Curious about the inline comment there -- how do you do CSV based on >> accept-header? >> > > You look for an Accept header that specifies text/csv (or whatever the > content type is) vs text/html. > > Or, if you're using a regular browser, you use a hack where you put > something like content-type=text/csv in the query string. > > Catalyst::Action::REST provides basically everything you need to make this > all work. > > > > -dave > > /*============================================================ > http://VegGuide.org http://blog.urth.org > Your guide to all that's veg House Absolute(ly Pointless) > ============================================================*/ > > _______________________________________________ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > -- The first step towards getting somewhere is to decide that you are not going to stay where you are. -- J.P.Morgan
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/