Broken code for making http request