Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

[iPhone] Domain=NSURLErrorDomain Code=-1000 UserInfo=0x3bf7e0

Hello,

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..

hm..

macbook air, Mac OS X (10.5.5)

Posted on Nov 1, 2008 4:04 AM

Reply
1 reply

Nov 1, 2008 5:25 AM in response to sommeralex

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]

cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:timeOutInterval];


thanks for any help..

[iPhone] Domain=NSURLErrorDomain Code=-1000 UserInfo=0x3bf7e0

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.