Ensure Content-Length header is being sent

Ensure proper headers are sent for `import` API operation
Merge pull request #350 from jamiehannaford/working

Ensure Content-Length header is being sent