TREFF: Create function for doing curl GET requests