integrating curl and liboauth