According to this topic:
https://discussions.apple.com/thread/3206110?start=0&tstart=0
the solution should be reset by your hosts file (in /private/etc/hosts ) and the connection should work again
The default hosts file should look like this:
## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost
in any case, it would be useful if you provide us with some debugs, for example
NSLog(@"%@",[error description])
where error is of type NSError from NSHTTPURLResponse sendSynchronousRequest:
Marek sebera
source share