
I have a question about WebView class regarding HTTP PROXY.
I have setup HTTP Proxy in Android Emulator as follows.
select * from system;
1|music_volume|3
2|voice_volume|3
3|ringer_volume|3
4|dim_screen|0
5|stay_on_while_plugged_in|1
6|screen_off_timeout|30000
7|font_scale|1.0
30|http_proxy|10.18.100.11:3128 <===
When using Browser.apk(com.google.android.browser). Android Emulator access to web page via HTTP proxy as follows.
netstat
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:5900 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN
tcp 0 0 10.0.2.15:5555 10.0.2.2:4127 ESTABLISHED
tcp 0 1 10.0.2.15:60284 10.18.33.206:8080 CLOSE_WAIT
tcp 0 0 10.0.2.15:39690 10.18.100.11:3128 ESTABLISHED <==
However, when using simple webview code, Android Emulator access to web page directly as follws.
netstat
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:5900 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN
tcp 0 0 10.0.2.15:5555 10.0.2.2:2564 ESTABLISHED
tcp 0 0 10.0.2.15:49999 10.18.33.206:8080 ESTABLISHED <==
udp 0 0 10.0.2.15:32768 10.0.2.3:53
Do anyone know How WebView can use HTTP Proxy?
Thank you