带有参数值点(“.”)的 iPhone 字符串 url 不起作用
NSString *lDownloadURL = [NSString
stringWithFormat:@"https://xxxx.com/tes.php?filename=%@",
tUniqueId]; // tUniqueId=1311454454.4270
NSString *result=
[lDownloadURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"Download URL: %@", lDownloadURL);
[helper download:lDownloadURL];
// 当我试图传递这个 url 时,它显示以下错误
数据失败:URL 无效 [https://xxxx.com/tes.php?filename=1311454454.4270]
请尽快帮助我...提前谢谢
NSString *lDownloadURL = [NSString
stringWithFormat:@"https://xxxx.com/tes.php?filename=%@",
tUniqueId]; // tUniqueId=1311454454.4270
NSString *result=
[lDownloadURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"Download URL: %@", lDownloadURL);
[helper download:lDownloadURL];
// when im trying to pass this url its showing the follwing error
Data failed: Invalid URL
[https://xxxx.com/tes.php?filename=1311454454.4270]
please help me soon... advance thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是指 test.php 而不是 tes.php 吗?
Did you mean test.php instead of tes.php?