tidy
fixed a bug when redirected with starting uri
improved example
added max_retry attribute