Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpRequest.post URL中带有冒号 #2215

Closed
edikai opened this issue Mar 25, 2022 · 1 comment
Closed

HttpRequest.post URL中带有冒号 #2215

edikai opened this issue Mar 25, 2022 · 1 comment
Labels

Comments

@edikai
Copy link

edikai commented Mar 25, 2022

版本情况

JDK版本: jdk1.8.0_131
hutool版本: 5.3.8(请确保最新尝试是否还有问题:最新版本也一样)

问题描述(包括截图)

HttpRequest.post("https://push-api.cloud.huawei.com/v1/104303371/messages:send")

这种带有冒号的请求是不是不行?
冒号被转义了
UrlPath.build() 中有这段说明

// 根据https://www.ietf.org/rfc/rfc3986.html#section-3.3定义
// path的第一部分不允许有":",其余部分允许
// 在此处的Path部分特指host之后的部分,即不包含第一部分
@looly
Copy link
Member

looly commented Mar 25, 2022

@edikai 你升级到5.7.22,严格遵循了RFC3986

@looly looly closed this as completed Mar 25, 2022
@looly looly added the question label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants