title: Empty request.POST in a Django view
body: <p>When sending a POST request to the following view, the <code>request.POST</code> dictionary is empty:</p>
  
  <pre><code>@csrf_exempt
  def created_query(request):
      if request.method == 'POST':
          print(request.POST)
          server = get_object_or_404(Server, pk=request.POST['server'])
          if server.owner == request.user:
              if server.created:
                  return HttpResponse("created")
              else:
                  return HttpResponse("pending")
          else:
              return HttpResponseForbidden
      else:
          return HttpResponseForbidden
  </code></pre>
  
  <p>I have tried with multiple ways of generating the POST request such as this cURL request:</p>
  
  <pre><code>curl --request POST \
  --url http://localhost:80/created/ \
  --form server=60 \
  --form action=created
  </code></pre>
  
  <p>I have checked the dictionary using a debugger as well as just printing it and it is always empty. I doubt it is a problem with the <code>urls.py</code> however here is the line in the file that handles this view:</p>
  
  <pre><code>url(r'^created/', views.created_query, name='created'),
  </code></pre>
  
  <p>Things we've already tried:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/15912627/3832377">Checking request content type</a></li>
  <li><a href="https://stackoverflow.com/a/7446387/3832377">Checking for use of raw_post_data</a></li>
  </ul>