Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.onion sites don't seem to work. #35

Open
kjrose opened this issue Feb 19, 2016 · 2 comments
Open

.onion sites don't seem to work. #35

kjrose opened this issue Feb 19, 2016 · 2 comments

Comments

@kjrose
Copy link

kjrose commented Feb 19, 2016

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?

@rainwolf
Copy link
Contributor

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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@kjrose @rainwolf and others