[racket-dev] `net/url' hack

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Jun 20 06:36:23 EDT 2011

A few seconds ago, eli at racket-lang.org wrote:
> e74f703 Eli Barzilay <eli at racket-lang.org> 2011-06-20 06:30
> :
> | Hack: make the `net/url' implementation handle both "http" and
> | "https" urls, dispatching to the plain tcp functions or the ssl
> | one.
> |
> | (See "HACK" comment for a description on how this is done.)
> :
>   M collects/net/url.rkt      |   17 ++++++++++-------
>   M collects/net/url-unit.rkt |   39 +++++++++++++++++++++++++++++++++------

So the `net/url' hack is done.  I basically made it do the dispatching
version if it gets a void value for `tcp-connect' -- and `net/url'
arranges for just that.  Does anyone want to take on documenting the
hack?  Please?

[The description should also say something about this default handling
of ssl connections as an equivalent of clicking through your browsers
warning (in fact, not even seeing them) -- so you can rely on the
communication to be safe but not rely on the identity of the site
you're contacting.  (That will require dealing with a pool of trusted
certificates and similar mess...  It'll be good to make it possible to
do something about it, but this is a stopgap anyway.)]

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the dev mailing list.