Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: url problem

From: joel:neely:fedex at: 28-Dec-2001 23:33

Hi, Louis, Use URL encoding in a string ... Dr. Louis A. Turk wrote:
> How can I get rebol to read a url containing the ! character? > > Louis > > >> x: http://www.wayoflife.org/fbns/churchdir/!unitedstates.htm > == http://www.wayoflife.org/fbns/churchdir/!unitedstates.htm > >> y: read x > ** User Error: URL error: > http://www.wayoflife.org/fbns/churchdir/!unitedstates.htm > ** Near: y: read x > >> >
... as follows:
>> y: read to-url
http://www.wayoflife.org/fbns/churchdir/%21unitedstates.htm == {<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mi...
>>
-jn- -- ; sub REBOL {}; sub head ($) {@_[0]} REBOL [] # despam: func [e] [replace replace/all e ":" "." "#" "@"] ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"} print head reverse despam "moc:xedef#yleen:leoj" ;