Use django.utils urlencode.

return HttpResponseRedirect(base_url + '?' + urlencode(params))

Note that a redirect is always turned into a GET request, never a
POST. If you really need POST you'll have to construct a page with the
proper form elements, and then either have the user submit it (no-js)
or post it using JavaScript yourself.

On Tue, Jan 27, 2015 at 1:30 AM, Hossein Rashnoo <mhr1...@gmail.com> wrote:
> I want when a user do something in my view then i redirect him to another
> website with some parameters as POST method Like when you submit a form.
> I think its may be something like this:
>
>     return HttpResponseRedirect("url","parameters")
>
> How can i do that?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6650db6b-1bd9-4f70-bbee-ed6bca3b95c2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD4ANxUvrRAF02F848RZkcg7n%2B9HsbHc0AkrFZNS0%3DBtMaFpDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to