Pierre-Yves,

My memory of 3.2.1 is a bit fuzzy. Are you saying that the /get/<pid>/<dsid> 
request in 3.2.1 *does* return the Content-Length header but doesn't in 3.6.2?

All of "Lite" APIs (i.e. the /get/ requests) were deprecated as of Fedora 3.4 
in favor of the REST API:

        https://wiki.duraspace.org/display/FEDORA36/Service+APIs

As a result, the Lite APIs aren't going to see any further work.

On Feb 7, 2013, at 8:47 AM, Pierre-Yves JALLUD 
<[email protected]> wrote:

> Hi all,
> I have recently migrate an old version of FedoraCommons (from 3.2.1 to 3.6.2) 
> (... in fact, I don't know if the migration is involved) and I am surprised 
> of the difference of result between the get API and the objects API (I mean 
> between fedora/get/<my_object>/<a_datastream> and 
> fedora/objects/<my_object>/datastreams/<a_datastream>/content). The diference 
> is in the HTTP head that is send. In the objects API, the size is sent but 
> not in the get API (see below the HTTP head that I got with LiveHTTPHeaders 
> version 0.17 in Firefox 18.0.1).
> 
> Don't hesitate to ask me more precisions... and thanks for your suggestions.
> Pierre-Yves
> 
> 
> With the objects API:
> 
> http://my_server/fedora/objects/my:object/datastreams/a_wave_file.wav/content
> 
> GET /fedora/objects/my:object/datastreams/a_wave_file.wav/content HTTP/1.1
> Host: my_server
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 
> Firefox/18.0
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip, deflate
> DNT: 1
> Cookie: JSESSIONID=DE0F9AEFA883D1E27E0F4E70C5DD9358; 
> __utma=71698838.1962001784.1328711215.1341242679.1341412281.19
> Authorization: Basic ZmVkb3JhQWRtaW46YnZHZDRtdXk4b25uZ1JkZw==
> Connection: keep-alive
> 
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Disposition: inline; filename="a_wave_file.wav"
> Date: Thu, 07 Feb 2013 14:28:05 GMT
> Content-Type: audio/x-wav
> Content-Length: 39133228
> 
> 
> 
> 
> With the get API:
> 
> http://my_server/fedora/get/my:object/a_wave_file.wav
> 
> GET /fedora/get/my:object/a_wave_file.wav HTTP/1.1
> Host: my_server
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 
> Firefox/18.0
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip, deflate
> DNT: 1
> Cookie: JSESSIONID=DE0F9AEFA883D1E27E0F4E70C5DD9358; 
> __utma=71698838.1962001784.1328711215.1341242679.1341412281.19
> Connection: keep-alive
> 
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: audio/x-wav
> Transfer-Encoding: chunked
> Date: Thu, 07 Feb 2013 14:31:09 GMT
> 
> <pierre-yves_jallud.vcf>------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013 
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb_______________________________________________
> Fedora-commons-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to