Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "

I am using restkit and am trying to hit https site from my simulator. iPad simulator taking the system proxy while sending the request i guess and proxy blocked these request . Same code works fine when i run in iPad device. Any one please help me. Error i get is

I restkit.network:RKObjectRequestOperation.m:174 POST 'https://myurl.net/api/auth/entry'
2013-07-19 18:06:43.515 Dashboard[19149:4703] E    restkit.network:RKObjectRequestOperation.m:570 Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x85806d0 
like image 248
Suresh Avatar asked Sep 14 '26 01:09

Suresh


1 Answers

Want to declare below line in Build setting pre process macros not use....... option _AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_

like image 66
Suresh Avatar answered Sep 16 '26 09:09

Suresh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!