707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
|
encoding: encoding];
[pool release];
return self;
}
req = [OFHTTPRequest request];
[req setURL: url];
res = [req result];
if ([res statusCode] != 200)
@throw [OFHTTPRequestFailedException
newWithClass: [req class]
HTTPRequest: req
statusCode: [res statusCode]];
|
|
|
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
|
encoding: encoding];
[pool release];
return self;
}
req = [OFHTTPRequest request];
[req setURL: url];
res = [req perform];
if ([res statusCode] != 200)
@throw [OFHTTPRequestFailedException
newWithClass: [req class]
HTTPRequest: req
statusCode: [res statusCode]];
|