Use put_info call function to send metadata to server

This make the function easier to maintain as new types are added and reuse
the code. This also partially fix sending new time/date types to server.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>