I've realised the following:
1. If I don't specify Content-Type, curl defaults to x-www-form-urlencoded
2. What I thought is the binary file's contents as a string is
actually not working reliably. On an XML upload of a single file I get
thousands of items and request.POST.items() looks like:
[' wr
OK, I'm getting there, althought I'm still confused a bit. In WebOb
docs I found request.body_file, request.body_file_raw,
request.body_file_seekable.
In multipart's request.POST, I'm doing:
file_obj.seek(0, 2)
file_size = file_obj.tell()
file_obj.seek(0)
Should I be using seekable or raw for th
I was confused on this years ago. The problem is in naming...
`curl` is concerned with the HTTP method `POST`. Let's call that `HTTP
POST`. If you look at the `curl` documents for the difference on the
various `--data-` options. Those options will `HTTP POST` data in
different formats an