Reputation: 509
I'm programming an application with internet uses. The Problem is, that i've a proxy problem. I've already read some articles in the net but nothing helps. When i start the avd from command-line with
emulator -avd <avd-Name> -http-proxy http:<proxyname>:<proxyip> -debug-proxy
I had the error Message:
Could not connect to proxy at http:0: Unkown socket error (Winsock=0xffffffff) errno=2: No such file or directory
Thanks for help
Upvotes: 1
Views: 1582
Reputation: 3027
When emulator -debug-proxy says:
tcp:(null)(29): received 'HTTP/1.0 400 Bad Request'
In Linux you can try to unset "http_proxy" environment variable:
tcp:(null)(29): connection refused, error=400
http_service_connect: trying to connect to (null)
http_service_connect: using HTTP rewriter
tcp:(null)(30): connecting
tcp:(null)(30): connected to http proxy, sending header
tcp:(null)(30): sending 27 bytes:
43 4f 4e 4e 45 43 54 20 28 6e 75 6c 6c 29 20 48 CONNECT (null) H
54 54 50 2f 31 2e 31 0d 0a 0d 0a TTP/1.1....
$ unset http_proxy
and then run the emulator again
Upvotes: 0
Reputation: 821
Did you use the correct syntax?
It's supposed to be one of the following:
http://<server>:<port>
http://<username>:<password>@<server>:<port>
http://developer.android.com/guide/developing/tools/emulator.html
If it doesn't work that way, maybe try a(nother) public proxy
Upvotes: 1