开发者

Which HTTP Headers are absolutely required for the GAE doPost/doGet methods?

I'm developing a mobile application that transmits data to the google app engine once per m开发者_StackOverflow社区inute, always and forever. The mobile user is charged per megabyte for data usage. The body of each request I need to send is only a hundred bytes or so; I'm trying to optimize the requests to save on data usage.

My question: what HTTP headers are absolutely required for the App Engine to be able to correctly handle a request via the doPost or doGet methods? Are they different? Which method is optimal for data usage? I want to strip out any header that is non-essential.

Any help is appreciated, thanks.

-tjw


According to HTTP/1.1, only Host is required.

Other headers, like Content-type, should be specified, but if your service can infer them, they may be omitted.

You should test the efficiency of compression on your messages. For such small messages, it might not help, but if it does, you should use it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜