Added local variable declaration to http.post_requests and http.get_url