xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

US-ASCII & cookie-name cookie-value All In One

US-ASCII & cookie-name cookie-value All In One

ASCII

cookies

A <cookie-name> can contain any US-ASCII characters except for:

  1. control characters (ASCII characters 0 up to 31 and ASCII character 127)
  2. separator characters (space, tab and the characters: ( ) < > @ , ; : \ " / [ ] ? = { })

A <cookie-value> can optionally be wrapped in double quotes and include any US-ASCII character excluding

  1. control characters (ASCII characters 0 up to 31 and ASCII character 127)
  2. Whitespace, double quotes, commas, semicolons, and backslashes.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#cookie-namecookie-value

image

ASCII for cookies

ASCII: 0 ~ 31 + 127

Tab

9 \t	Horizontal Tab
11 \v	Vertical Tab

13 \r	Carriage Return

https://en.wikipedia.org/wiki/ASCII#Control_code_chart

32 ~ 126

排除掉

32 space
34 "
40 (
41 )
44 ,
47 /
58 :
59 ;
60 <
61	=
62 >
63 ?
64 @
91 [
92 \
93 ]
123 {
125 }

https://en.wikipedia.org/wiki/ASCII#Printable_characters

demos

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

ASCII 啊死K

https://developer.mozilla.org/en-US/docs/Glossary/ASCII

https://en.wikipedia.org/wiki/ASCII

refs

https://www.cnblogs.com/xgqfrms/p/9993892.html#5217008

https://gist.github.com/xgqfrms/e2a4a9b1a8bfe88594e221277031b846



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-10-09 08:16  xgqfrms  阅读(4)  评论(0编辑  收藏  举报