通过 tg api 之 sendMessage 方法,推送带“&”链接,如 https://example.com/show?id=123&userid=456 ,推送后“&userid=456”被丢弃。应如何保护完整链接?
通过 tg api 之 sendMessage 方法,推送带“&”链接,如 https://example.com/show?id=123&userid=456 ,推送后“&userid=456”被丢弃。应如何保护完整链接?
|
ochatokoriMay 29, 2022 via Android
1
encodeURIComponent ?
|
|
ikMay 29, 2022 via iPhone
2
用的 shell? 完整 url 用引号包起来
|
|
3
补充一下,为 php 代码,用单引号、双引号都不行
|