debugging code for generating curl commands