Test do_put_request, and add a example for put request in restlib.

Signed-off-by: Denghui Huang <huangdenghui@gmail.com>