curl getResource implemented