charles-proxy

HTTP Traffic monitoring issue when using MonoTouch, HttpClient and Charles Proxy

筅森魡賤 提交于 2019-11-29 07:01:50
I'm new to HttpClient class and I'm having issue with monitoring requests using Charles Proxy . Basically what I need is to monitor the requests which are made either from simulator or actual iOS device. Here you can find a great tutorial of how to configure Charles for iOS development. I was making simple HttpClient requests for instance, just a simple authorisation async Task<string> authorizeUser() { HttpClient _client = new HttpClient (); _client.BaseAddress = new Uri("https://...../api/"); _client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue

How to configure SSL certificates with Charles Web Proxy and the latest Android Emulator on Windows?

雨燕双飞 提交于 2019-11-28 15:07:38
I would like to use Charles web proxy to work with the Android emulator in Windows. I've successfully set up charles and have started the emulator with the command line: emulator -http-proxy 127.0.0.1:8888 @NexusOne I can see traffic coming from the android emulator in Charles, but the problem is that I'm developing against a live API which uses SSL and I'm not sure how to configure Charles to let me play about the the data which is sent and received. I'm aware of two areas where SSL is set up in Charles (Proxy -> Proxy Settings -> SSL and Proxy -> Client SSL Certificates) but I can't find any

Can't set headers on my WKWebView POST request

谁都会走 提交于 2019-11-28 03:59:56
I want to do a POST request to my WKWebView but the headers doesn't get set when I monitor the requests with Charles so the request fails. What is wrong here? NSString *post = [NSString stringWithFormat: @"email=%@&password=%@", email, password]; NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; NSString *contentLength = [NSString stringWithFormat:@"%d", postData.length]; NSURL *url = [NSURL URLWithString:@"http://materik.me/endpoint"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request setHTTPMethod:@"POST"]; [request

How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?

百般思念 提交于 2019-11-28 02:46:53
It seems that the directory for the iOS Simulator has changed. It used to be in ~/Library/Application\ Support/iPhone\ Simulator/ and now it's in ~/Library/Developer/CoreSimulator/Devices/ . jonsibley Update: Charles 3.9.3+ has a built-in function to configure your iOS Simulators (i.e. installing the Charles SSL Certificate). This can be found in the Help menu within the Charles application. ( Help > SSL Proxying > Install Charles Root Certificate in iOS Simulators ) The following applies to Charles 3.9.2: Download the configuration shell script from the Charles Proxy website . Then, replace

How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 04:59:06
问题 It seems that the directory for the iOS Simulator has changed. It used to be in ~/Library/Application\ Support/iPhone\ Simulator/ and now it's in ~/Library/Developer/CoreSimulator/Devices/ . 回答1: Update: Charles 3.9.3+ has a built-in function to configure your iOS Simulators (i.e. installing the Charles SSL Certificate). This can be found in the Help menu within the Charles application. ( Help > SSL Proxying > Install Charles Root Certificate in iOS Simulators ) The following applies to

SSL Proxy/Charles and Android trouble

天大地大妈咪最大 提交于 2019-11-26 21:16:33
I want to test Https calls from android device using Charles proxy tool. I need to see the raw request/response contents for debugging app. I've configured Charles by adding the host and port under "Proxy Settings" -> SSL Tab. When I run the app, all SSL calls seems to disappear quickly from the Charles. Does any one has any idea how to fix this issue. Charles documentation doesn't seem to have information for Android devices. for the Android7 refer to: How to get charles proxy work with Android 7 nougat? for the Android version below Android7 From your computer, run Charles : Open Proxy

Can't set headers on my WKWebView POST request

吃可爱长大的小学妹 提交于 2019-11-26 19:09:36
问题 I want to do a POST request to my WKWebView but the headers doesn't get set when I monitor the requests with Charles so the request fails. What is wrong here? NSString *post = [NSString stringWithFormat: @"email=%@&password=%@", email, password]; NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; NSString *contentLength = [NSString stringWithFormat:@"%d", postData.length]; NSURL *url = [NSURL URLWithString:@"http://materik.me/endpoint"];