Forgot the attachment… twice. Yay for new email clients I'm not used to
import random
import StringIO
from twisted.internet import reactor
from twisted.web import client, http_headers
def _encodeForm(a, b, f):
"""
Encodes two form values and a fake image file as multipart form encoding.
Forgot the attachment (as itamar pointed out)
cheers
lvh
On 07 Jul 2012, at 16:57, Laurens Van Houtven wrote:
> With a lot of help from idnar, the issue is resolved!
>
> There were a few red herrings that ended up cleaning my code a lot, but
> eventually it ended up boiling down to my MIME
With a lot of help from idnar, the issue is resolved!
There were a few red herrings that ended up cleaning my code a lot, but
eventually it ended up boiling down to my MIME generating code simply being
busted. Fixed version attached.
Apparently this also highlighted a minor issue in twisted.web