我一直试图从Shoutcast访问PLS文件数据进行一些测试,但响应似乎被禁止,我得到403作为响应。
这是密码
<代码> >/P>
nsurl*myurl=[nsurl urlwithstring:@“http:
nsmutableurlRequest*myRequest=[[nsmutableurlRequest alloc]initWithURL:myURL];
[MyRequest设置值:@“**
NSMutableURLRequest *myrequest = [[NSMutableURLRequest alloc]initWithURL:myurl];
[myrequest setValue:@"*/*" forHTTPHeaderField:@"Accept"];
NSURLConnection *theConnection = [[NSURLConnection alloc]initWithRequest:myrequest delegate:self];
在响应中,它显示403,未接收到任何数据。我试图检查内容类型,它显示音频/X-SCPLS
有人能帮我解决这个问题吗?