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

! in URLs, and inserting strings in bitsets

 [1/4] from: gregg:pointillistic at: 30-Mar-2010 12:37


Hi all, I just needed to read a url that has a ! in it, which I guess I've never done before, because it doesn't work. e.g. http://www.nzwebz.co.nz/directory.php?webz=search&amp%3Bsearch_for=yahoo!xtra Pro Mail ! is a valid url char, according to RFC1738, but DECODE-URL chokes on it. Should net-utils/URL-Parser/path-char include "!"? path-char: insert copy alpha-num "=+-_.;:&$-%*',~?| []()^"" ; !!! note: space allowed I have to admit, I was also thrown a bit by the use of INSERT here. The combination of INSERT, COPY, and a string PARAM tricked me into thinking alpha-num was also a string (yes, I know, it's right there), and that the result of INSERT on a string was not what was wanted. What do you think; should you be able to insert a string into a bitset and have it coerced automatically? -- Gregg

 [2/4] from: dhsunanda:gma:il at: 30-Mar-2010 19:45


Gregg:
> I just needed to read a url that has a ! in it, which I guess I've > never done before, because it doesn't work. e.g. > > http://www.nzwebz.co.nz/directory.php?webz=search&amp%3Bsearch_for=yahoo!xtra Pro Mail >
Not answering your question, but offering a workaround: you could try escaping the ! to %21 print read to-url http://www.nzwebz.co.nz/directory.php?webz=search&search_for=yahoo%21xtra Pro Mail Sunanda.

 [3/4] from: gregg:pointillistic at: 30-Mar-2010 13:32


Hi Sunanda, S> Not answering your question, but offering a workaround: you could try S> escaping the ! to %21 I did this for now: insert net-utils/url-parser/path-char "!" -- Gregg

 [4/4] from: hallvard:ystad:babelserver at: 1-Apr-2010 23:14


Not answering your question, but offering a workaround (like Sunanda): <http://www.rebol.org/view-script.r?script=url-handler.r>http://www.rebol.org/view-script.r?script=url-handler.r HY Dixit Gregg Irwin (20:37 30.03.2010):