1 Reply Latest reply: Nov 1, 2008 5:25 AM by sommeralex
sommeralex Level 1 (10 points)

My app trys to connect to a serverURL but i get
Domain=NSURLErrorDomain Code=-1000 UserInfo=0x3bf7e0
i couldnt find any reference for that code -1000. hence, if i give the request url directly to the server (browser), it works..


macbook air, Mac OS X (10.5.5)
  • sommeralex Level 1 (10 points)
    i got the reason for this error: my request string has some characters like "{" which seems to crash the request attempt. i guess that it has something do to with UTF8..? how can i convert my jsonString into UTF8 or tell the request, that it should be a UTF8 request?

    tempString = [httpPreFix stringByAppendingFormat:@"%@", @"5"]; //groupId
    tempString = [tempString stringByAppendingFormat:@"%@",@"/"];
    //tempString = [tempString stringByAppendingFormat:@"%@", jsonString];//causes requestError

    request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:tempString]


    thanks for any help..