iPXE discussion forum

Full Version: HTTP Basic Auth escape password
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am attempting to use HTTP(S) basic authentication to control access to a PXE boot menu in an iPXE script:

Code:
#!ipxe
dhcp || exit
login || exit
boot https://${username:uristring}:${password:uristring}@${net0.dhcp/next-server}/pxe/menu.php || exit

Passwords with the commercial at symbol (@) fail because the at symbol is not being escaped. How can I escape it?
(2015-08-12 22:03)rhwood Wrote: [ -> ]
Code:
boot https://${username:uristring}:${password:uristring}@${net0.dhcp/next-server}/pxe/menu.php ||

Passwords with the commercial at symbol (@) fail because the at symbol is not being escaped. How can I escape it?

Your syntax is correct. The latest commit http://git.ipxe.org/ipxe.git/commitdiff/ba36953 should fix the problem.

Michael
Reference URL's