Prefer buffer_len function over adding space for NUL byte
Improve error checking
Add dev build with debug statement capability
Ensure we send all data when making a request