How can I send an xml file to a Django app server from a command line interface? 
I tried using curl, but the data I get on the Django side becomes a dictionary and doesn't look like xml. In addition to that I need some basic authorization mechanism. I tried curl examples, but to no avail. Maybe I am expecting the wrong thing. Can someone guide me to the right tutorial or examples.
request.body should contain the XML as string.

I tried using curl, but the data I get on the Django side becomes a
  dictionary

Can you please share the code blocks to receive/print the data?
Send a XML file with authorization to a django app