title: External django redirect with POST parameters
body: <p>I'm trying to create a redirect in a Django view to an external url with some get parameters attached to the request. After doing some looking around and some trying around, it seems I have hit a road block.</p>
  
  <p>So my view looks something like this</p>
  
  <pre><code>def view(request):
      data = get.data(request)
      if something in data:
          return HttpResponseRedirect('example.com')
  </code></pre>
  
  <p>This is as far as I was able to get. I know that you in the request url can specify some get parameters like this:</p>
  
  <pre><code>...
  return HttpResponseRedirect('example.com?name=smith&amp;color=brown')
  </code></pre>
  
  <p>However since some of the data is sensitive, I don't want it to end up in the url. Since it's an external url I can't use the redirect() shortcut that accepts views parameters. So pray tell, how does one accomplish such a task?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>After having done some more looking around, and have chatted a bit in IRC, it seems that what I should do, to keep the get parameter away from users, containing payment info, is to send them as post instead. I was told that you should be able to do it by using some JS as well, possibly jQuery. The question still remains though a bit more complicated now. How would one go about creating post redirect in django with the help of javascript?</p>
  
  <p><strong>2nd Edit</strong></p>
  
  <p>Seems like I have been misinformed. Thanx for clearing that up with the redirect protocols DR. Looks like I have been going down the wrong path in my attempt of using redirect to solve this problem.</p>