c.max_batch_up)
crlf = b'\r\n'
+ lf = b'\n'
mime = (b'--b' + crlf +
- b'Content-Disposition: form-data; name="m"' + crlf +
- password + crlf +
- str(c.client) .encode('ascii') + crlf +
+ b'Content-Disposition: form-data; name="m"' + crlf + crlf +
+ password + lf +
+ str(c.client) .encode('ascii') + lf +
str(c.target_outstanding) .encode('ascii') + crlf +
+ ((
b'--b' + crlf +
- b'Content-Disposition: form-data; name="d"' + crlf +
- mime_translate(d) + crlf +
+ b'Content-Disposition: form-data; name="d"' + crlf + crlf +
+ mime_translate(d) + crlf
+ ) if len(d) else b'') +
b'--b--' + crlf)
+ df = open('data.dump.dbg', mode='wb')
+ df.write(mime)
+ df.close()
+
log_debug(DBG.HTTP_FULL, 'requesting: ' + str(mime))
hh = { 'User-Agent': ['hippotat'],