{"action":"created","issue":{"url":"https://api.github.com/repos/racket/racket/issues/1089","labels_url":"https://api.github.com/repos/racket/racket/issues/1089/labels{/name}","comments_url":"https://api.github.com/repos/racket/racket/issues/1089/comments","events_url":"https://api.github.com/repos/racket/racket/issues/1089/events","html_url":"https://github.com/racket/racket/pull/1089","id":110966371,"number":1089,"title":"PLT_HTTP_PROXY and PLT_NO_PROXY honoured","user":{"login":"tim-brown","id":1106977,"avatar_url":"https://avatars.githubusercontent.com/u/1106977?v=3","gravatar_id":"","url":"https://api.github.com/users/tim-brown","html_url":"https://github.com/tim-brown","followers_url":"https://api.github.com/users/tim-brown/followers","following_url":"https://api.github.com/users/tim-brown/following{/other_user}","gists_url":"https://api.github.com/users/tim-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-brown/subscriptions","organizations_url":"https://api.github.com/users/tim-brown/orgs","repos_url":"https://api.github.com/users/tim-brown/repos","events_url":"https://api.github.com/users/tim-brown/events{/privacy}","received_events_url":"https://api.github.com/users/tim-brown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-12T12:40:13Z","updated_at":"2015-10-13T14:42:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/racket/racket/pulls/1089","html_url":"https://github.com/racket/racket/pull/1089","diff_url":"https://github.com/racket/racket/pull/1089.diff","patch_url":"https://github.com/racket/racket/pull/1089.patch"},"body":"As per conversation on list, `url.rkt` now tries to get its proxy list from `PLT_HTTP_PROXY` (only “http” supported to be consistent with the rest of the proxy server handling). `PLT_HTTP_PROXY` is a URL, of the form: `http://proxy.here.com:3128`.\r\n\r\n`PLT_NO_PROXY` stops the proxy from being used for certain sites. In the environment variable, you can enter:\r\n- `hostname.do-serversmainname` as a string, matches the host name exactly\r\n- `.domainname` matches domainname as a suffix of any candidate URL\r\n- I _guess_ that it will support numeric host names, `192.168.1.1`, too; but untested.\r\n- I _guess_ too, that  `.168.1.1` will work too, although I can’t see that being of too much use\r\n- There’s no support for the million and one other IP address patterns/masks/schemes out there\r\n\r\n`current-no-proxy-servers` (I use the word servers, since these are all servers that will be proxied to), can be set as a parameter. In this case, a `regexp?` can be provided directly for fancy matching. YMMV on that though..\r\n\r\n`proxy-server-for` returns the entry for a scheme and server name (optional); or `#f` for a direct connection\r\n\r\n`current-no-proxy-servers` and `proxy-server-for` are exported"},"comment":{"url":"https://api.github.com/repos/racket/racket/issues/comments/147736468","html_url":"https://github.com/racket/racket/pull/1089#issuecomment-147736468","issue_url":"https://api.github.com/repos/racket/racket/issues/1089","id":147736468,"user":{"login":"tim-brown","id":1106977,"avatar_url":"https://avatars.githubusercontent.com/u/1106977?v=3","gravatar_id":"","url":"https://api.github.com/users/tim-brown","html_url":"https://github.com/tim-brown","followers_url":"https://api.github.com/users/tim-brown/followers","following_url":"https://api.github.com/users/tim-brown/following{/other_user}","gists_url":"https://api.github.com/users/tim-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-brown/subscriptions","organizations_url":"https://api.github.com/users/tim-brown/orgs","repos_url":"https://api.github.com/users/tim-brown/repos","events_url":"https://api.github.com/users/tim-brown/events{/privacy}","received_events_url":"https://api.github.com/users/tim-brown/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T14:42:37Z","updated_at":"2015-10-13T14:42:37Z","body":"oh, I see... net-lib doesn't have the URL/HTTP client stuff I'm working on"}}