[Catalyst] Sanity Check -- requesting feedback on chaining approach

will trillich will.trillich at serensoft.com
Thu Feb 17 16:29:02 GMT 2011


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 <autarch at 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=3Dtext/csv in the query string.
>
> Catalyst::Action::REST provides basically everything you need to make this
> all work.
>
>
>
> -dave
>
> /*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> http://VegGuide.org               http://blog.urth.org
> Your guide to all that's veg      House Absolute(ly Pointless)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
>
> _______________________________________________
> List: Catalyst at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110217/c74d7=
b0d/attachment.htm


More information about the Catalyst mailing list