Fix newline issue in cURL scenarios. Thanks Mahmoud.
Merge pull request #230 from remear/fix-curl-newline

Fix newline issue in cURL scenarios. Thanks Mahmoud.