Allow initialisation from a hash

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Allow to specifiy different Content-Type when POSTing

Signed-off-by: Olivier Mehani <shtrom@ssji.net>