Add pwdhttp function.