On Wed, Aug 10, 2011 at 12:45 PM, RoyWilliams <roydavidwilli...@gmail.com>wrote:

> My problem is that POST data is not being copied into the request
> object that my Django code is getting, but the problem only happens
> with WSGI.
>
> When I fill in the web form with a browser, the POST data comes
> through correctly: request.method is POST and the QueryDict has my
> parameters. But when I use code (python urllib) to POST the data, it
> does not come through: request.method is set to GET and there are no
> parameters (QueryDict). I have checked that this client is really
> sending a POST request.
>
> I have done this with CSRF switched on and off, and it makes no
> difference.
>
> I have found this to be a WSGI problem, because there is another
> installation of the same application that uses mod_python, and that
> works perfectly.
>
>
You haven't shown any code, nor config information, nor how you have checked
that the client is really sending a POST, so it's rather hard to help. All I
can say is really, it's quite possible to use python urllib to successfully
POST data to a Django server using Apache/mod_wsgi (I assume that is what
you mean by WSGI since you mention mod_python as an alternative).

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to