Fix Password issue (not correct one used: ssl is not always taken into
consideration)
Fix Hash handling and error printing
Fix request with JSON format, still compatible with old format