There should be a simple way to build form data. For multipart/form-data, look at this example: https://stackoverflow.com/questions/20205796/golang-post-data-using-the-content-type-multipart-form-data#20397167