I have a multipart header, which starts with
------------------123456\r\n
where 123456 is a guid. I want to extract this out. I'm trying to find in the specifications how this header is made, but I don't know why there are so many dashes or even if the number of them is fixed. w3c seems to suggest there are only two dashes --123456 but obviously that's not correct as you can see.
What's the best way to parse the ID out so I can use it to split the other headers up?
Edit: I'm not getting a boundary, my incoming data looks like this. My form contains a textbox and a file upload:
-----------------------------7da292321290902\r\nContent-Disposition: form-data;
name=\"my_title\"\r\n\r\nWhat I typed in the textbox\r\n-----------------------------
7da292321290902\r\nContent-Disposition: form-data; name=\"upload\";
filename=\"C:\\myFile.zip\"\r\nContent-Type: application/x-zip-compressed\r\n\r\n ascii
data here for the file contents