Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsuppor
2017-01-10 11:25
2076 查看
网络请求时url不能包含ASSIC码,例如:
NSString *urlString=@"{\"AirlineCode\":\"MU\",\"AlitripFlag\":null}";
需要转换
urlString=[urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet
URLQueryAllowedCharacterSet]];
酱紫就OK啦~
NSString *urlString=@"{\"AirlineCode\":\"MU\",\"AlitripFlag\":null}";
需要转换
urlString=[urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet
URLQueryAllowedCharacterSet]];
酱紫就OK啦~
相关文章推荐
- Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的权利字符串" UserInfo=0x1bad30 {NSLocalizedDescription=未找到应用程序的“aps-environment”的权利字符串}
- [iOS]Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL"
- [iOS]Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://121.
- Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=http://XXXX, NSLo
- Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo={NSLocalizedDes
- Error Domain=NSURLErrorDomain Code=-1007 "太多 HTTP 重定向" UserInfo={NSUnderlyingError=0x170247230 {Erro
- :Error Domain=ShareSDKErrorDomain Code=207 "(null)" UserInfo={error_message=Can't share because plat
- Error Domain=com.albertodebortoli.goldraccoon Code=-1000 "(null)" UserInfo={message=Can't overwrite directory!}
- 关于iOS 插入日历功能以报错Error Domain=EKErrorDomain Code=1 "尚未设定日历。" UserInfo={NSLocalizedDescription=尚未设定日历。}
- Error Domain=domainRoutePlanError Code=571 "(null)" UserInfo={routeplan_error_code=571}
- iOS Error = NSURLErrorDomain Code=-1022 " 错误解决
- Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo=0x17426e940 {NS
- Error Domain=ASIHTTPRequestErrorDomain Code=5 "Unable to create request (bad url?)" UserInfo=0x15f86
- IOS Error Domain=NSURLErrorDomain Code=-999 "(null)"
- iOS Error = NSURLErrorDomain Code=-1022 " 错误解决
- Error Domain=NSURLErrorDomain Code=-1100 "(null)"
- Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded b
- python pip install 报错TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' Command "python setup.py egg_info" failed with error code 1 in
- ios UIWebView加载https出现 load page error:Error Domain=NSURLErrorDomain Code=-1202 "此服务器的证书无效
- iOS xcode 7网络请求错误failure Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded