Hello,
 

> "This is impossible to redirect a user to external site with post. 
> urllib and urllib2 can only help to fetch data, but not to redirect a 
> user."

You can't do a 301 or 302 http redirect, but I don't think that's what 
you're trying to do.

Anyone knows if that's really the case? I can just do what most people do 
> to integrate the online payment solution, create a form with action to 
> their website and have all my fields as 'hidden'. But I was wondering if 
> there is a way to actually send the data via POST from inside a django view
>

It is possible to send data via POST inside a django view. I think the 
issue with your code is the return statement. It seems to me you are 
successfully sending a POST from your view, but you then need to do 
something with that response, and then return a django HttpResponse (or 
render a template) to the user.

Collin

-- 
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/8a9ddb36-6565-4003-856f-a9aae6bc0054%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to