title: How to access username information from within a CURL request?
body: <p>If I have the following curl request:</p>
  
  <pre><code>curl --dump-header - -H "Content-Type: application/json" -u TEST:TEST -X POST --data '{"alert": "[\"CPU\", \"Server\", \"Heartbeat\", \"Ping\"]", "id": 11, "pattern": ".*\\.websys\\.tmcs", "product": "TMOL", "pub_date": "2014-08-05 12:15:17", "resource_uri": "/tool/api/v1/sys_team/11/", "sys_team": "WebSys@xxxxxx.com","group":"WebSys"}' http://localhost:8000/tool/api/v1/sys_team/
  </code></pre>
  
  <p>Is there anyway I can get access to the -u information (specifically the username)? I can't use request.user.username because I want to authenticate the user based on the group he/she is in so it defaults to Anonymous user because it isn't authenticated yet.  </p>