Url重定向
来源:互联网 发布:打击垫编程教学 编辑:程序博客网 时间:2024/05/27 02:29
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{
//取得重定向后的最终视频地址,防止类似 ku6这样的网站,跳转链接报错资源失效。
NSMutableURLRequest *request = [NSMutableURLRequestrequestWithURL:[NSURLURLWithString:self.url]cachePolicy:NSURLRequestReloadIgnoringCacheDatatimeoutInterval:15.0];
[request setHTTPMethod:@"HEAD"];
NSURLResponse *response =nil;
[NSURLConnectionsendSynchronousRequest:request returningResponse:&response error:nil];
NSURL *finalURL = response.URL;
dispatch_async(dispatch_get_main_queue(), ^{
_cyberPlayerController.contentURL = finalURL;
[_cyberPlayerControllerplay];
});
});
- URL重定向
- HttpClient URL 重定向
- URL重定向
- url重定向
- IIS7 url重定向
- url重定向
- Url重定向
- URL重定向
- iOS url重定向
- URL重定向 UrlRewrite
- Apache URL重定向指南
- 重定向 js传入url
- easyUi reload 重定向URL
- 解析http302重定向url
- phalcon学习 - 重定向,URL
- Apache:url重定向文档
- URL重定向/跳转漏洞
- nignx URL 重定向-rewrite
- 笔记本以太网卡共享的无线网卡的网络
- Android 用户表单融合各类简易控件以及融入FloatingActionButton以及butterknife
- Arraylist和Vector区别
- 要告别CSDN转去博客园啦....
- Unicode(UTF-8, UTF-16)令人混淆的概念
- Url重定向
- Python matplotlib 画图相关
- 简单几句话总结Unicode,UTF-8和UTF-16
- Java文件切割与合并二之File开道
- Kubernetes技术分析之监控
- Linux常用压缩、解压命令
- Quartz2D完成图片剪切
- win64位系统-----PL\SQL连接Oracle数据库的注意事项
- 本地通知之闹钟