update client.cpp and server.cpp

I tried to finish the get method, but there's something wrong. Could you
help me fix the code. I'll keep working on put and list methods on
Sunday if I got time.