curl request formatter