I am trying to upload an image to an server.
I do this using an script (in objective-c) and request an php page on the server. I found on the internet some example code to use (which was very useful).
Link: How to send post data and image file to server Xcode
Somewhere in the sample code they are setting "boundaries" before requesting the page. It looks like this:
NSString *boundary = [NSString stringWithString:@"-------------------------- 14737809831466499882746641449" ];
NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@",boundary];
[request addValue:contentType forHTTPHeaderField: @"Content-Type"];
Question: What are boundaries and what does it do?