update rest client version
add setHeader function
add Content-Lenght header for PUT request