How big can a user agent string get?

前端 未结 11 2145
清酒与你
清酒与你 2020-11-28 20:36

If you were going to store a user agent in a database, how large would you accomdate for?

I found this technet article which recommends keeping UA under 200. It does

11条回答
  •  感情败类
    2020-11-28 21:07

    HTTP specification does not limit length of headers at all. However web-servers do limit header size they accept, throwing 413 Entity Too Large if it exceeds.

    Depending on web-server and their settings these limits vary from 4KB to 64KB (total for all headers).

提交回复
热议问题