added in redirection following for the curl to fix the http->https redirection in drupal