title: How do you create a Django HttpRequest object with the META fields populated?
body: <p>Is there a way to create an <code>HttpRequest</code> object in Django that has all of the <code>cgi</code> <code>META</code> variables present? I'm attempting to process a view, but can't figure out how to (easily) make the request object. I just want to make sure I'm not making life harder than need be manually copying all the fields from an existing request. This <em>feels</em> like something there'd be an existing solution for, but after several hours of searching, I can't find what I need.</p>
  
  <p>I originally went with <code>Client</code> and <code>RequestFactory</code> from <code>django.test</code>, but these fill the request object with junk data, which causes some of the dynamic fields in my view to render with incorrect values (for example, things like <code>SERVER_NAME</code>) </p>
  
  <p>Is there a correct way to create a usable HttpRequest object? </p>