Hello,
I have to write a Java wrapper for the following REST web service:
Request URL:
https://myServer:8080/myDomain/rest/myProject/run/555/log-attachment
Method: POST
Request Header:
[Accept: application/xml]
[Content-Type: multipart/form-data; boundary=XXXXXXX]
I was unclear on how and where the file boundry value would come from, that needs to be passed in to the request as a header.
Would anyone know this?
In regards to the multipart file parameter, I was a bit unclear on how the implementation would go. Would any one have any sample code for this?
This example was not too clear as it uses deprecated APIs:
https://discursive.atlassian.net/wiki/display/CJCOOK/Uploading+Files+with+a+Multipart+POST
Any good references/examples to multipart file uploads using Java would be greatly appreciated!
Thanks,
Sheeraz