[plt-scheme] Problem fetching a URL
> > i.e. it is converting ampersands to semi-colons rather than %26 which
> > seems like incorrect behaviour. Is this a bug in the url library? I'll
> > pre-convert the urls before passing them to string->url, cheers.
>
>I don't think this is incorrect behavior. The above seems to be a
>rfc-compliant url. It is using semi colons as separators.
>
>If you want the bits at the end to use & instead of ; there you'll want
>to do this:
>
>(require (lib "url.ss" "net")
> (lib "uri-codec.ss" "net"))
>
>(current-alist-separator-mode 'amp)
>
>(url->string
> (string->url
>
>"http://uk.old.finance.yahoo.com/d/quotes.csv?s=@%5EFTMC&f=sl1d1t1c1ohgv&e=.csv"))
>
>Robby
Hi Robby,
It looks like current-alist-separator-mode is exactly what I need. I'll try
it out later.
Thanks very much,
Ian