Comment #41 on issue 5454 by
dtcac...@gmail.com: Allow pub to use an HTTP
proxy
http://code.google.com/p/dart/issues/detail?id=5454
Hm, no, I didn't use any extra options, just `curl <package json address>`.
wget seems to "just work" too. AFAIK, the only two proxy related settings
here are `http_proxy` and `https_proxy` environment variables.
Here is the curl log, if it's of any help. As I mentioned before, we're
using Squid proxy:
bash $ curl -v
https://pub.dartlang.org/packages/web_ui.json
* About to connect() to proxy
proxy.example.com port 3128 (#0)
* Trying 10.2.0.226...
* connected
* Connected to
proxy.example.com (10.2.0.226) port 3128 (#0)
* Establish HTTP proxy tunnel to
pub.dartlang.org:443
> CONNECT
pub.dartlang.org:443 HTTP/1.1
> Host:
pub.dartlang.org:443
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
> OpenSSL/0.9.8r zlib/1.2.5
> Proxy-Connection: Keep-Alive
< HTTP/1.0 200 Connection established
<
* Proxy replied OK to CONNECT request
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc;
CN=*.
dartlang.org
* start date: 2012-08-15 12:25:20 GMT
* expire date: 2013-06-07 19:43:27 GMT
* subjectAltName:
pub.dartlang.org matched
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify ok.
> GET /packages/web_ui.json HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
> OpenSSL/0.9.8r zlib/1.2.5
> Host:
pub.dartlang.org
> Accept: */*
< HTTP/1.1 200 OK
< Content-Type: application/json
< Vary: Accept-Encoding
< Date: Wed, 17 Apr 2013 21:33:06 GMT
< Server: Google Frontend
< Cache-Control: private
< Transfer-Encoding: chunked
<
* Connection #0 to host
proxy.zymeworks.com left intact
{"uploaders":
["
jmes...@google.com", "
sig...@google.com", "
dgr...@google.com", "
te...@google.com"], "name": "web_ui", "versions":
["0.2.10", "0.2.10+1", "0.2.10+2", "0.2.11", "0.2.8+5", "0.2.8+6", "0.2.9", "0.3.0", "0.3.0+1", "0.3.0+2", "0.3.1", "0.3.1+1", "0.3.1+2", "0.3.1+3", "0.3.2", "0.3.3", "0.3.3+1", "0.3.3+2", "0.3.3+3", "0.3.3+4", "0.4.0", "0.4.0+1", "0.4.1", "0.4.1+1", "0.4.1+2", "0.4.1+3", "0.4.1+4", "0.4.1+5", "0.4.1+6", "0.4.1+7", "0.4.2", "0.4.2+1", "0.4.2+2", "0.4.2+3", "0.4.2+4", "0.4.2+5", "0.4.3", "0.4.3+1", "0.4.4", "0.4.4+1", "0.4.5", "0.4.6", "0.4.6+1"]}*
Closing connection #0
* SSLv3, TLS alert, Client hello (1):