Probably I'm missing something... why don't are you using curlit here (as you do in curljson)?