iOS Trying to call web service and I'm getting a NSURLErrorDomain error -


i'm trying connect web service if hit through safari json, when hit through code nsurlerrordomain error following description.

"the certificate server invalid. might connecting server pretending "url" could..."

here code:

    nsurl *url = [nsurl urlwithstring:@"webservice_url"];      nsmutableurlrequest *request = [nsmutableurlrequest requestwithurl:url];      [request sethttpmethod:@"get"];      nserror *error = nil;     nshttpurlresponse *responsecode = nil;      nsdata *oresponsedata = [nsurlconnection sendsynchronousrequest:request returningresponse:&responsecode error:&error]; 

can explain how around this? also, https web service.

the website doesn't have https certificate. try looking this: https://stackoverflow.com/a/15011030/4716039


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -