Refactor using lambda to reduce duplication
comment out debug mode
Merge pull request #3 from joprice/separateHeader

curl lambda callback