X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=client;h=c9682bd944e135b4a57f0bdb8c375f5bdf2188fa;hp=ce5e8564b06f95276858d0ef426e9e919fdea2f9;hb=68afd97b014f134e9681ab90b374a6b44e6eb2b3;hpb=297b3ebf9498b0954fc77728b8d92064e9ee6684 diff --git a/client b/client index ce5e856..c9682bd 100755 --- a/client +++ b/client @@ -102,16 +102,24 @@ 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 + + b'Content-Disposition: form-data; name="m"' + crlf + crlf + password + crlf + str(c.client) .encode('ascii') + crlf + 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() + # POST -use -c 'multipart/form-data; boundary="b"' http://localhost:8099/