Added a number-of-redirects parameter to URL::createInputStream