[racket] PLaneT and proxies

From: Norman Gray (norman at astro.gla.ac.uk)
Date: Fri Jun 18 05:02:12 EDT 2010


PLaneT appears to have some difficulties with HTTP caches.

When I require a PLaneT package, I get an error:

csv2skos.rkt:3:9: require: PLaneT could not download the requested package: Internal error (unknown HTTP response code 403) in: (planet neil/csv:1:6/csv)

This is probably due to the presence of the campus-wide HTTP cache (long may its bits rot).  Installing the package manually does work, but is a bit of a fuss (that's using 

% curl `planet url neil csv.plt 1 6` >csv.plt
% planet fileinject neil csv.plt 1 6 

...for the archive's reference), and this has cropped up on 'this' list before <http://lists.racket-lang.org/users/archive/2009-November/036847.html>, but the resolution there was simply 'yes, this is a proxy problem'.

So: herewith the obvious feature request.  Would it be feasible or reasonable for racket to respect the conventional $http_proxy environment variable (on Unix boxes, obviously, but I imagine there's a windows alternative)?  Something along the lines of net/url's (current-proxy-servers (parse-proxy-string (getenv "http_proxy"))) would appear to be sufficient.

Best wishes,


Norman Gray  :  http://nxg.me.uk

Posted on the users mailing list.