Creating my own curl method.