[Catalog-sig] JSON content-disposition (Was: [PythonInfo Wiki] Update of "CheeseShop" by RichardJones)

Richard Jones richard at python.org
Thu Apr 7 07:52:13 CEST 2011


On Thu, Apr 7, 2011 at 3:41 PM, anatoly techtonik <techtonik at gmail.com> wrote:
> On Thu, Apr 7, 2011 at 8:25 AM, python.org wiki <wiki at python.org> wrote:
>>
>>  You can access JSON information about packages by using the URL format
>>
>>    http://pypi.python.org/pypi/package_name/json
>
> Why Content-Disposition: attachment; ???
> Please, CC.

Why not? IIRC when I implemented it at the EuroPython sprints I asked
around those near me and the consensus was for attachment. It should
have no bearing on programmatic use, and I find it more convenient for
in-browser use (since application/json is not handled).


>>python -m wget http://pypi.python.org/pypi/wget/json
> 8192 / unknown
> Date: Thu, 07 Apr 2011 05:34:16 GMT
> Server: Apache/2.2.16 (Debian)
> Content-Disposition: attachment; filename=wget-0.7.json
> Connection: close
> Content-Type: application/json; charset="UTF-8"
>
> Saved under json
>
> --
> anatoly t.
> _______________________________________________
> Catalog-SIG mailing list
> Catalog-SIG at python.org
> http://mail.python.org/mailman/listinfo/catalog-sig
>
>


More information about the Catalog-SIG mailing list