error = Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x7f9205a02aa0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
当我点击服务器时,我收到此错误。
NSString *strurl = [NSString stringWithFormat:@"http://%@/WebInterface/upApp_anmai.aspx?validateXml=%@", [UserInfo sharedInstance].IP, AESvalidateXml];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:strurl]];
request.HTTPMethod = @"POST";
request.HTTPBody = ***;
但如果喜欢这个
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://181.125.78.237:81/ANMAIjz/WebInterface/upApp_anmai.aspx?validateXml=aEIakcuDeemSjpC5S/hr7+w+CDFLLfpEnZXZwYqAQx9a/NZsP6A4zYhgXX/ynAskPNLVgzuzt1iHgECXLyXCvsfj+c7WT6W7tLnuF050jBk4Yx2+Sk29GmjvzeYSGzrAirxZok3v//gwDU/VBORoxkc6LhlWHVb3c42clXixJB+GkJr2nRZpJgs48U4n1fVd"]];
没关系
请任何人就此问题向我提出建议。
@thanks提前