Re: File upload from python client to Django app

2010-06-21 Thread euan.godd...@googlemail.com
urllib2 can handle cookies and therefore you should be able to handle the login. It will probably be a fair bit of work to get the client to submit the various parts, but I'm sure I've seen some examples around on how to do such a thing. Euan On Jun 21, 3:52 pm, srn wrote: > Hello to all, > > I'

File upload from python client to Django app

2010-06-21 Thread srn
Hello to all, I'm trying to do a POST from a python client to a Django webapp using urllib2 but I'm getting http 403 error. On the Django side I'm using a Form so I suspect the problem is {% csrf_token %} (csrf middleware enabled) which I can't provide from the client side. Is there other way to