HTTP协议传输过程中的转义字符(upgrade)

我们在实际工作中可能会遇到使用一些sniff的软件去捕获http的包并且分析,并且如果是直接基于socket方式的访问需要直接使用转义字符(特殊字符)来向server端发起请求,下面是一些特殊符号和转义字符的使用,plus一个例子,通过这样的转换我们也可以使用nc等命令向一个端口发出指令.这样服务器端和客户端就能基于http进行传输和解析.
[ is %5b,
] is %5d,
" is %22
& is &
' is '
< is <
> is >
" is "
Sample:
/1/101/services/pss/~~/Player%5b@playerID=%221000739%22%5d/@watchers<Player-watchers><watchers><Watcher><playerID>1000747</playerID><nickname>N2002</nickname><watcherPendingTimestamp>20080217032801.0Z</watcherPendingTimestamp><relationshipType><m/></relationshipType><chatMessageCounter>1</chatMessageCounter><emailsReceivedCounter>1</emailsReceivedCounter><intimacyLevel>1</intimacyLevel></Watcher></watchers>
</Player-watchers>
=
/1/101/services/pss/~~/Player[@playerID="1000739"]/@watchers<Player-watchers><watchers><Watcher><playerID>1000747</playerID><nickname>N2002</nickname><watcherPendingTimestamp>20080217032801.0Z</watcherPendingTimestamp><relationshipType><m/></relationshipType><chatMessageCounter>1</chatMessageCounter><emailsReceivedCounter>1</emailsReceivedCounter><intimacyLevel>1</intimacyLevel></Watcher></watchers>
</Player-watchers>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值