I\'m writing a script that uploads a file to a cgi script that expects a multipart request, such as a form on a HTML page. The boundary
is a unique token that a
If you are feeling paranoid, you can generate a random boundary and search for it in the string to be sent, append random char (or re-create new) on find, repeat. But my experience is any arbitrary non-dictionary string of 10 or so characters is about impossible to occur, so picking something like ---BOUNDARY---BOUNDARY---BOUNDARY--- is perfectly sufficient.