开发者

Why ASIHTTPRequest still ask for ssl even though I close it? [closed]

开发者 https://www.devze.com 2023-03-21 08:55 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, o开发者_高级运维r rhetorical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, o开发者_高级运维r rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

A connection failure occurred: SSL problem

 NSURL *url = [NSURL URLWithString:@"https://www.trevesstudios.com/indexappyness1.php"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];

[request setPostValue:year1 forKey:@"year"];
[request setPostValue:appy_level forKey:@"appy_level"];
[request setPostValue:reasons forKey:@"reasons"];
[request setPostValue:country forKey:@"country"];
[request setPostValue:city forKey:@"city"];
[request setPostValue:sex forKey:@"sex"];
[request setRequestMethod:@"POST"];
[request setValidatesSecureCertificate:NO];
[request setDelegate:self];
[request startAsynchronous];


I believe the error may lie with your SSL certificate rather than with ASIHTTPRequest.

If I try to access https://www.trevesstudios.com/indexappyness1.php from Chrome or IE I get the following error

Unable to make a secure connection to the server. This may be a problem with the server or it may be requiring a client authentication certificate that you don't have.

however if I drop the secure connection and just try to access it using plain ol' HTTP the pages loads as normal without error.

0

精彩评论

暂无评论...
验证码 换一张
取 消