CPAProxy icon indicating copy to clipboard operation
CPAProxy copied to clipboard

.onion sites don't seem to work.

Open kjrose opened this issue 9 years ago • 2 comments

The documentation isn't entirely clear how to call .onion sites, but when I do try to do them directly through the proxy it fails. Is there a special method for doing .onion with CPAProxy?

kjrose avatar Feb 19 '16 04:02 kjrose

It works for me using the example in the readme with the code below:

            NSURL *URL = [NSURL URLWithString:@"https://facebookcorewwwi.onion/"];
            NSURLSessionDataTask *dataTask = [urlSession dataTaskWithURL:URL
                                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                                if(error == nil)
                                                                {
                                                                    NSString * text = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding];
                                                                    NSLog(@"Data = %@",text);
                                                                }

                                                            }];
            [dataTask resume];

rainwolf avatar Jun 27 '16 11:06 rainwolf