This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cfgtype:string [2011/03/24 02:25] mcb30 created |
cfgtype:string [2011/03/24 02:46] (current) mcb30 |
||
---|---|---|---|
Line 27: | Line 27: | ||
===== See also ===== | ===== See also ===== | ||
+ | * [[:cfgtype:uristring]] | ||
* [[:cfg|List of all iPXE settings]] | * [[:cfg|List of all iPXE settings]] | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | A [[:cfgtype:string]] setting can contain spaces and other "special" characters that can cause problems during URI parsing. You can avoid these potential problems by requesting expansion as a [[:cfgtype:uristring]] setting. For example, if you want to pass the SMBIOS ''[[:cfg:product]]'' name to a boot script running on a web server, you could use | ||
+ | |||
+ | chain http://boot.ipxe.org/demo/boot.php?product=${product:uristring} | ||
+ | |||
+ | This will ensure that any "special" characters are URI-encoded as necessary. For example, if the SMBIOS product name is "PowerEdge R210", then the above command will expand to | ||
+ | |||
+ | chain http://boot.ipxe.org/demo/boot.php?product=PowerEdge%20R210 | ||