2009-10-23 101 views

回答

4

根据对initWithURL评论:

//应该是一个HTTP或HTTPS URL,可以 包括用户名和密码,如果 适当

所以,是的,它应该支持HTTPS。虽然我没有尝试过。

3

支持HTTPS。最近我一直在使用这些类来进行HTTPS的广泛应用。

1

是的,在这种情况下,您必须发送密码和用户名,如下面的示例所示。

NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com/top_secret/"]; 
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; 
[request setUsername:@"username"]; 
[request setPassword:@"password"]; 

在ASIHTTPRequest更多信息在以下网址找到:

http://allseeing-i.com/ASIHTTPRequest/How-to-use

编辑:您也可以尝试:

[request setValidatesSecureCertificate:NO] 

这对于自签名证书的工作。