I'm trying to create a script to import and following the guidelines at https://community.rackspace.com/products/f/25/t/4918

We are trying to do it as a PHP script and it works fine to authenticate and I get a token like AAAW3B5....that works great.

However, I use that token to POST to https://dns.api.rackspacecloud.com/v1.0/######/domains/import and I get a 500 Internal Server Error and no other information. 

Even taking that URL to Chrome Postman and adding the param for file and headers gets me a 500 error, so I feel like it has something to do with the file but I'm not sure and don't have a lot to go on.

My PHP is at https://codeshare.io/29pw9g

Thanks for any ideas,