Updated multipart post to handle proxy