Post request to rest server