Friday, March 29, 2013

Re: How to get the the filename of WGET?

In order to get the filename, you will need to use the
multipart/form-data encoding (RFC2388). wget does not support
this, but curl does when you use the -F option:

curl -F file=@conf.xml http://192.168.23.73:8001/ipdb_file/

However, your code will need to be modified to use the
request.POST dictionary rather than the raw form data
(request.body), since the raw form data will contain the encoding
of the file and the filename fields.

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment