GAE's http header length limit, bug or undocumented restriction?

126 views
Skip to first unread message

tempy

unread,
Jan 16, 2012, 1:39:41 PM1/16/12
to Google App Engine
Hi All,

I've hit a behavior that doesn't exist on the dev-server, which is
that custom http headers on the response seem to be limited to around
400 characters. One custom header that I'm using which is regularly
about 700 chars is simply silently dropped from the response.

Firstly - this restriction, if its not a bug, should be documented.
I've spent a whole lot of time building a feature around a big http
header which worked fine all along on the dev server, if I have to re-
architect this feature then it'll be a few days of work down the
tubes.

Secondly - is this a bug? This issue:
http://code.google.com/p/googleappengine/issues/detail?id=407
Seems to indicate that this is a bug, but its marked as fixed and it
is clearly not fixed. If it is a bug, is there a known workaround?

It would be really great if someone from google could weigh in here.
Thanks!

Brandon Wirtz

unread,
Jan 16, 2012, 3:09:58 PM1/16/12
to google-a...@googlegroups.com
400 is the specification limit for http header elements.
(actually I think it is 400 characters converted to Base64)

Most things don't break if you go over this,

The max size for all Http Headers is 4k

Hi All,

--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengi...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.

tempy

unread,
Jan 16, 2012, 3:44:29 PM1/16/12
to Google App Engine
Really? I tried to find something in the spec about header lengths and
didn't find anything. According to this thread:
http://stackoverflow.com/questions/686217/maximum-on-http-header-values
there are no maximums. And where did you get the 4k number? Thanks!

Brandon Wirtz

unread,
Jan 16, 2012, 3:59:07 PM1/16/12
to google-a...@googlegroups.com
I'd have to look it up, it came up a lot at Microsoft In the IPTV group.

Fabio Sgrò

unread,
Oct 30, 2012, 5:26:48 AM10/30/12
to google-a...@googlegroups.com
Hi All,
I've got the same error and i can't find any information in the documentation.
For me the limit is a little increased, is about 600 character for a single header...

Is this a bug or an unreported restriction??

Thanks to all

Fabio
_________________________
GLOBALBASE - Google Enterprise Partner
Via Baldanzese 127 - 50041 - Calenzano (FI)
Firenze - Trento - Milano - Roma
 
Passa a Google Apps
Se hai ricevuto questa comunicazione per errore, ti preghiamo di non inoltrarla a nessun'altra persona in quanto potrebbe contenere informazioni riservate o privilegiate. Cancellane tutte le copie e informa il mittente che il messaggio è stato inviato per errore ad un'altra persona. Grazie. 
--------------------------------------------------------------------
This email may be confidential or privileged. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it went to the wrong person. Thanks.

I termini che precedono rappresentano un potenziale accordo commerciale e costituiscono esclusivamente una base per ulteriori negoziazioni, di conseguenza non danno origine ad obbligazioni legalmente vincolanti né potranno essere interpretati come tali. Nessuna obbligazione legalmente vincolante potrà sorgere o essere ritenuta implicitamente sorta fino a quando tutte le parti coinvolte non abbiano concluso e sottoscritto un accordo definitivo
Reply all
Reply to author
Forward
0 new messages