make sure we do not post empty string, also parse response correctly