Revision [1878]
This is an old revision of CommandXurlencode made by DavidLee on 2013-01-24 15:20:45.
Command xurlencode
Name
xurlencode Encodes a string in URL Encoding formatSynopsis
xurlencode [options] [string]Options
Supports the standard [ serialization options ]
-n | do not output a linefeed |
-p,-port port | Output to port instead of stdout |
-q | Encode pairs of name/value arguements |
Description
Encodes its argument, or if none, stdin to URL Encoding format from plain text
if -q is specified then pairs of arguments are encoded as name=value pairs.
Example:
xurlencode http://test.xmlsh.org/data/books.xml
Result
http%3A%2F%2Ftest.xmlsh.org%2Fdata%2Fbooks.xml
xurlencode -q name "value with spaces" arg2 "value&two"
Result
name=value+with+spaces&arg2=value%26two
Return Value
Returns 0 if the command executed successfully, 1 if there was an error.Commands
CategoryCommands
CommandXurldecode