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

URL 不支持分号 #16

Closed
pexcn opened this issue Feb 4, 2023 · 2 comments
Closed

URL 不支持分号 #16

pexcn opened this issue Feb 4, 2023 · 2 comments

Comments

@pexcn
Copy link

pexcn commented Feb 4, 2023

当请求的 URL 带有分号,日志会报这个错误 http: URL query contains semicolon, which is no longer a supported separator; parts of the query may be stripped when parsed; see golang.org/issue/25192

2023/02/04 21:57:23 request.go:76: PHP POST https://www.youtube.com/api/stats/qoe?fmt=313&afmt=251&cpn=5d4v4b3YJUyjXWQ3&el=detailpage&ns=yt&fexp=23858058%2C23983296%2C23986019%2C24004644%2C24007246%2C24080738%2C24135310%2C24169501%2C24249503%2C24271462%2C24396645%2C24415864%2C24416291%2C24430382%2C24433679%2C24437577%2C24439360%2C24441240%2C24442917%2C24449113%2C24450367%2C24451033%2C24454358%2C24455198%2C24457652%2C24458634%2C24463912%2C24467759%2C24467964&cl=506103060&seq=6&docid=3VGh62B6jNE&ei=EGTeY7WMGvm5j-8PyMmMsA4&event=streamingstats&feature=search&plid=AAXz4CpcWHLjDS9H&q=4k&referrer=https%3A%2F%2Fwww.youtube.com%2Fresults%3Fsearch_query%3D4k&sourceid=ys&cbr=Chrome&cbrver=109.0.0.0&c=WEB&cver=2.20230201.01.00&cplayer=UNIPLAYER&cos=Windows&cosver=10.0&cplatform=DESKTOP&bwm=41.590:23775178:22.472,50.003:6970969:8.471&bwe=41.590:575145,50.003:1384124&bat=41.590:0.3:0,50.003:0.29:0&cmt=41.590:1975.385,50.003:1975.385&bh=41.590:0.627,50.003:0.000&vps=41.590:S,50.003:S&ctmp=mdstm:t.42106;rst4disc.d;cd.0.000;sq.-1,mdstm:t.42608;rst4disc.d;cd.0.000;sq.-1&df=50.003:30 HTTP/1.1
2023/02/04 21:57:23 server.go:3217: http: URL query contains semicolon, which is no longer a supported separator; parts of the query may be stripped when parsed; see golang.org/issue/25192

相关 issue: golang/go#25192

@koalabearguo
Copy link
Owner

从PHP POST的log来看,传到远程php server的还是有semicolon的,应该是不影响访问的,只是因为http proxy使用了golang net/http的官方包,会检查url,但这里面并没有用作server去解析query参数。

@pexcn
Copy link
Author

pexcn commented Feb 5, 2023

似乎是不影响访问,先关闭这个issue了

@pexcn pexcn closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants