[plt-scheme] Making HTTPS requests

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Thu Oct 7 04:12:40 EDT 2004

--- Anton van Straaten <anton at appsolutions.com> wrote:

>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> Is it possible to make an HTTPS request (notice the "S")
> using PLT?  I see
> the openssl collection lurking amongst the other
> collections, but it looks
> like I'd have to hack url-unit.ss to make it use that.

url-unit imports a unit with the tcp^ signature. 
ssl-tcp-unit.ss, in the net collection, provides an SSL
based unit that implements the sig.

So you simply need to hack url.ss.  The code below ought to
work.  Write it up in the Cookbook; be a hero :-)



(module ssl-url mzscheme
  (require (lib "unitsig.ss")
  (provide-signature-elements net:url^)

      [T : net:tcp^ (make-ssl-tcp@)]
      [U : net:url^ (url@ T)])
     (export (open U)))))

Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh

Do you Yahoo!?
Declare Yourself - Register online to vote today!

Posted on the users mailing list.