-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
请问下iOS下能否设置自定义请求头? #2415
Comments
See |
https://www.ffmpeg.org/ffmpeg-protocols.html#Protocol-Options
2017-02-08 19:51 GMT+08:00 15031980193 <notifications@github.com>:
… 这个http.c在哪里? 能说下具体咋用吗,Android上如何设置自定义的请求头?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2415 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEOmlgwEAEUhzZMnmG-fS1-_C8aNktLKks5raaxCgaJpZM4LIybi>
.
|
这样就可以了设置http访问的Referer 为http://github.com,和Range头为byte=1-1000. http头本身就是使用\r\n进行分隔的,所以可以自定义http的头信息, vitamio的iOS版本设置http头的方式也是类似的方式,为什么呢?原因 @raymond1012 发的链接已经说得很清楚了,如下
|
你想要替换Host的话得这样设置,注意:host:后面有空格,host:后面有空格,host:后面有空格,可以设置日志等级为k_IJK_LOG_INFO,在控制台中查看 |
ijkplyaer设置 Range:byte=1-1000后,视频时长异常都是2s,大神有遇到吗 |
类似这样的参数:
[request addValue:@"www.bilibili.com" forHTTPHeaderField:@"Host"];
谢谢~
The text was updated successfully, but these errors were encountered: