Wiki source for CommandXurlencode
======Command xurlencode======
=====Name=====
**xurlencode** Encodes a string in URL Encoding format
====Synopsis====
xurlencode [options] [string]
====Options====
Supports the standard [ [[SerializationOptions 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.
Arguments can be either individual values or sequences.
Example:
%%(shell)
xurlencode http://test.xmlsh.org/data/books.xml
%%
Result
%%
http%3A%2F%2Ftest.xmlsh.org%2Fdata%2Fbooks.xml
%%
%%(shell)
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]]
=====Name=====
**xurlencode** Encodes a string in URL Encoding format
====Synopsis====
xurlencode [options] [string]
====Options====
Supports the standard [ [[SerializationOptions 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.
Arguments can be either individual values or sequences.
Example:
%%(shell)
xurlencode http://test.xmlsh.org/data/books.xml
%%
Result
%%
http%3A%2F%2Ftest.xmlsh.org%2Fdata%2Fbooks.xml
%%
%%(shell)
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]]