Why is the "Accept-Encoding : identity" header required for resumable upload

4,608 views
Skip to first unread message

Danny C

unread,
Nov 3, 2011, 1:57:26 PM11/3/11
to google-docum...@googlegroups.com
Using:
GData Version 3
LibCurl 7.20

I recently got an upload of a pdf document to google docs to work

However it would only work if I added the header below, 
"Accept-Encoding : identity "

along with my other headers. 
"Transfer-Encoding : identity "
"Content-Length: 70143"

My question is, why is the Accept-Encoding header required? 
Thanks,
- danny 

Vic Fryzel

unread,
Jan 3, 2012, 10:42:11 AM1/3/12
to google-docum...@googlegroups.com
Hi Danny,

Actually, I do not think it is required by our implementation.  Additionally, RFC 2616, section 14 states that the value you're providing for the header is not required in the HTTP spec, because an empty Accept-Encoding value is the same as Accept-Encoding: identity.

The "identity" content-coding is always acceptable, unless specifically refused because the Accept-Encoding field includes "identity;q=0", or because the field includes "*;q=0" and does not explicitly include the "identity" content-coding. If the Accept-Encoding field-value is empty, then only the "identity" encoding is acceptable.

Thanks,
-Vic
Reply all
Reply to author
Forward
0 new messages