Wiki

Changes between Initial Version and Version 1 of HttpUtility

Show
Ignore:
Timestamp:
11/07/10 16:54:36 (14 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HttpUtility

    v1 v1  
     1Using !HttpUtility requires a reference to the System.Web library: 
     2{{{ 
     3@ref 'System.Web' 
     4use System.Web 
     5 
     6class Test 
     7 
     8        def main 
     9                text = 'foo&bar' 
     10                encoded = HttpUtility.urlEncode(text) 
     11                assert encoded == 'foo%26bar' 
     12                assert HttpUtility.urlDecode(encoded) == text 
     13}}} 
     14 
     15See also: LibraryTopics, WebDevelopment