MRD
Mezeo
Documentation
Examples
SDKs
Forum
Mezeo Ready Developer Center
February 04, 2012, 06:49:38 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Mezeo Ready Developer Center
>
Development
>
REST API
>
Content-Length -vs- Transfer-Encoding: chunked
Pages: [
1
]
« previous
next »
Print
Author
Topic: Content-Length -vs- Transfer-Encoding: chunked (Read 474 times)
Mark Aldred
Newbie
Posts: 16
Content-Length -vs- Transfer-Encoding: chunked
«
on:
July 14, 2010, 11:52:05 AM »
Is there any way that I can get a "Content-Length" header rather than the "Transfer-Encoding: chunked" in response to GET requests? Handling the Content-Length header is trivial, while the chunked response is rather unpleasant from within my application.
Logged
Travis McLane
Mezeo Employee
Newbie
Posts: 21
Re: Content-Length -vs- Transfer-Encoding: chunked
«
Reply #1 on:
July 19, 2010, 09:29:06 AM »
Currently there is no way to have the API send the response in that manner.
I will file an enhancement request to have this added to the API.
Do you mean in all GET responses (including raw data)?
Or just in the API XML responses?
Logged
Mark Aldred
Newbie
Posts: 16
Re: Content-Length -vs- Transfer-Encoding: chunked
«
Reply #2 on:
July 19, 2010, 11:13:07 AM »
Hi Travis,
I'm not sure that an enhancement request is appropriate at this time. Currently my application is working with using the Transfer-Encoding header but the Content-Length header is a "nice to have" feature. I suppose that when V3 is available that the Content-Length header will be used because that is what S3 uses. Perhaps I'm misunderstanding what will be in V3. Anyway, I'm just looking for a way to know the size of the data that being transfered for a GET request before my application starts copying the data from cURL so that I can allocate a buffer of the proper size.
Logged
Travis McLane
Mezeo Employee
Newbie
Posts: 21
Re: Content-Length -vs- Transfer-Encoding: chunked
«
Reply #3 on:
July 23, 2010, 10:14:36 AM »
If you were to retrieve the application/vnd.csp.file-info+xml data for the file you were going to GET before executing the request the total size of the file would be known.
The V3 you are speaking of is the upcoming platform version not the API version.
The V2 API will continue to be the same for all intents and purposes.
Additional capabilities will be exposed but the basic shape of things will remain the same.
Logged
Mark Aldred
Newbie
Posts: 16
Re: Content-Length -vs- Transfer-Encoding: chunked
«
Reply #4 on:
July 23, 2010, 10:25:35 AM »
Yes, of course I can file-info. How did I overlook that?! Thanks.
I guess I totally misunderstood what V3 is all about. I thought it was going to include a S3 compatible REST API.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Support and Questions
-----------------------------
=> General Discussion
-----------------------------
Development
-----------------------------
=> SDK Related
=> Getting Started
=> REST API
=> Interoperability API
Loading...