[plt-scheme] http authentication?

From: Paul Graunke (ptg at ccs.neu.edu)
Date: Wed Dec 11 11:05:25 EST 2002

At Sun, 08 Dec 2002 12:44:12 GMT, MJ Ray wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> Anton van Straaten <anton at appsolutions.com> wrote:
> > Are there any libraries for PLT Scheme that support this?  All I want to do
> > is a simple retrieval of a file via a URL with basic authentication.
> 
> I suspect this is a good idea for a patch.  Shouldn't be difficult to do
> basic auth.  Do you have time, or shall I start work on it?  (Is it valuable
> enough to anyone to pay for? ;-) )

get-pure-port accepts a list of optional http headers to send with the request.
  (list (format "authorization: Basic ~a" (base64-encode "bubba:bbq"))
should authorize bubba to download the secret receipe for life (in Texas).

Paul


Posted on the users mailing list.