Converted to "request" library to work around problems with raw http.request calls.
Updated to work around various problems in bulk updating issues with http.request.