Hi,
I am able to get the data from all urls related to DEV, QA except for Pre QA url . Below exception is coming for PRE QA url (http://qnecfplds01.internal.local:81/eBusiness/EDS/Pages/dump_file.asp?CONVNAME=CONVNAME.PDF&PRINTSTREAM_CONFIG=DOCUMERGE&PRINTSTREAM_TO_IMAGE_PDF=0&REQTYPE=dmg_RenderDoc&CABINET=ARC&DOC_MAJORVERSION=1&DOC_MINORVERSION=0&DOC_ID=327806).
Could you please suggest me on that.
Exception is java.net.ProtocolException: Server redirected too many times (20)
Following is Code Snippet
URL docuPresentmentEndPoint = null;
URLConnection printUrlConnection = null;
try {
docuPresentmentEndPoint = new URL(url);
printUrlConnection = docuPresentmentEndPoint.openConnection();
// Let the run-time system (RTS) know that we want input.
printUrlConnection.setDoInput(true);
// Let the RTS know that we want to do output.
printUrlConnection.setDoOutput(true);
BufferedReader br = new BufferedReader(new InputStreamReader(printUrlConnection.getInputStream()));
}
Thanks,
Sreehari
I am able to get the data from all urls related to DEV, QA except for Pre QA url . Below exception is coming for PRE QA url (http://qnecfplds01.internal.local:81/eBusiness/EDS/Pages/dump_file.asp?CONVNAME=CONVNAME.PDF&PRINTSTREAM_CONFIG=DOCUMERGE&PRINTSTREAM_TO_IMAGE_PDF=0&REQTYPE=dmg_RenderDoc&CABINET=ARC&DOC_MAJORVERSION=1&DOC_MINORVERSION=0&DOC_ID=327806).
Could you please suggest me on that.
Exception is java.net.ProtocolException: Server redirected too many times (20)
Following is Code Snippet
URL docuPresentmentEndPoint = null;
URLConnection printUrlConnection = null;
try {
docuPresentmentEndPoint = new URL(url);
printUrlConnection = docuPresentmentEndPoint.openConnection();
// Let the run-time system (RTS) know that we want input.
printUrlConnection.setDoInput(true);
// Let the RTS know that we want to do output.
printUrlConnection.setDoOutput(true);
BufferedReader br = new BufferedReader(new InputStreamReader(printUrlConnection.getInputStream()));
}
Thanks,
Sreehari