X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=client;h=436592eefcaf3920221c587747a3cf21f6534c07;hp=ce5e8564b06f95276858d0ef426e9e919fdea2f9;hb=60dc70f9314c87b6d12fc248aa05b74996ae28ef;hpb=297b3ebf9498b0954fc77728b8d92064e9ee6684;ds=sidebyside diff --git a/client b/client index ce5e856..436592e 100755 --- a/client +++ b/client @@ -102,16 +102,23 @@ def check_outbound(): 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'],