I was trying to use nodejs for doing a server side multipart/form-data from nodejs for the test case for a feature I recently implemented on nodejs server. However I did not find a good straight way to achieve this. I found some code here and modified that to make it more modular. Code as below. var Step = require('step'), fs = require('fs'), Http = require('http'); /** Converts a list of paramete