I'm not 100% sure how you would do it in BMax, but you do need to pass the header:
The <Unique Boundary Code> can be generated from the current date for instance. (remove <>)
multipart/form-data; boundary=--------<Unique Boundary Code>
The <Unique Boundary Code> can be generated from the current date for instance. (remove <>)