added ability to specify binary and debug messages of curl responses