Working on follow-redirects.
Implemented follow-redirect.
Setting max redirects to avoid redirect loops.