Hello,
I grabbed the Enterprise Web Services 9.7.1 sample code (Java) for uploading large files using the servlet.
https://knowledge.opentext.com/knowledge/cs.dll/fetch/2001/15080935/-15106263/15106294/15106295/16376487/17990637/15623088/19572224/clientguide.html#content.http
When writing a test, I can successfully send the HTTP request and binary file data to the servlet. However, I get the following once the request is complete:
java.io.IOException : Server returned HTTP response code: 415 for URL: http://1.0.07:8080/les/services/Authentication?token=efklz4xGfr%252BSr2DxKZa9vcfNXY8q%252F7FDicDjjnQ6HgI%253D&contextID=239198869&fileName=Groovy_in_Action_Se_v15_MEAP.pdf&fileSize=10224939
at sun.net.www.protocol.http.HttpURLConnection.getInputStream( HttpURLConnection.java:1459 )
I've tried changing the "content-type" header value in the request to some different values (such as application/pdf for a pdf doc) as well as removing the content-type header altogether.
I cannot understand why the servlet is not accepting the file. Any help would be greatly appreciated.
Thanks,
-Troy