-
Notifications
You must be signed in to change notification settings - Fork 124
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自动转码? #146
Comments
服务器端不能urldecode一下吗?这里是参照guzzle的一个实现 |
服务器的处理不是我能控制的, 使用guzzle(7.4) 测试 并没有这个问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
最近打算使用saber来作为twitter api 的客户端,发现saber会自动对url进行转码.导致api请求失败.
经过测试发现:
使用
SaberGM::get("https://127.0.0.1/r.php?max_results=10&tweet.fields=lang,created_at,entities&expansions=attachments.media_keys&media.fields=type,preview_image_url,url");
服务端接收到经过转码的QUERY_STRING:
[QUERY_STRING] => max_results=10&tweet_fields=lang%2Ccreated_at%2Centities&expansions=attachments.media_keys&media_fields=type%2Cpreview_image_url%2Curl
而用curl 发送请求:
curl "https://127.0.0.1/r.php?max_results=10&tweet.fields=lang,created_at,entities&expansions=attachments.media_keys&media.fields=type,preview_image_url,url"
服务端能接收到正确的QUERY_STRING:
[QUERY_STRING] => max_results=10&tweet.fields=lang,created_at,entities&expansions=attachments.media_keys&media.fields=type,preview_image_url,url
请问如何禁止saber对url自动转码?
The text was updated successfully, but these errors were encountered: