简体   繁体   中英

In HTTP 1.1, Content-Length = "Content-Length" ":" 1*DIGIT

In HTTP 1.1, Content-Length = "Content-Length" ":" 1*DIGIT My question is how to understand "1*DIGIT"?

Does it mean any count of digits? Does it allow prefix 0, such as "00123"?

Thanks

Quoting RFC 2616:

The character * preceding an element indicates repetition. The full form is <n>*<m>element indicating at least and at most occurrences of element. Default values are 0 and infinity so that *(element) allows any number, including zero; 1*element requires at least one; and 1*2element allows one or two.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM