I have the same Prince app running on four different development Windows/IIS servers. Two are wide open (behind a firewall), one is password protected and one is password protected and has SSL. It works fine on the first three but fails on the server w/ SSL. This is my Prince command in Perl:
$princecmd = 'C:\Progra~1\Prince\Engine\bin\prince.exe';
if (! open(PRINCE, "| $princecmd --baseurl=$baseurl --http-user=$user --http-password=$pass --no-embed-fonts --no-subset-fonts --ssl-blindly-trust-server -")){
print "Error starting Prince\n";
exit;
}
print PRINCE $html || die "can't write to prince; $!";
close(PRINCE);
this is the error message returned from Prince:
prince: http://www.w3.org/TR/html4/strict.dtd:81: error: xmlParseEntityDecl: entity ContentType not terminated prince: http://www.w3.org/TR/html4/strict.dtd:81: error: Content error in the external subset prince: -:11: error: Opening and ending tag mismatch: META line 3 and HEAD prince: -:11: error: AttValue: " or ' expected prince: -:11: error: attributes construct error prince: -:11: error: Couldn't find end of Start Tag TABLE line 11 prince: -:21: error: Opening and ending tag mismatch: br line 21 and h2 prince: -:30: error: Opening and ending tag mismatch: hr line 22 and TD prince: -:30: error: Opening and ending tag mismatch: h2 line 21 and TR prince: -:30: error: Opening and ending tag mismatch: hr line 15 and TABLE prince: -:30: error: Opening and ending tag mismatch: TD line 11 and BODY prince: -:30: error: Opening and ending tag mismatch: TR line 11 and HTML prince: -:31: error: Premature end of data in tag BODY line 11 prince: -:31: error: Premature end of data in tag HEAD line 2 prince: -:31: error: Premature end of data in tag HTML line 2 prince: -: error: could not load input file prince: error: no input documents to process
It looks like the html is not well formed but it's the exact same html that I am passing the other servers that work. I suspect that SSL is the problem, I used --ssl-blindly-trust-server. Am I missing something?
thanks - dorian@uaqa.com
$princecmd = 'C:\Progra~1\Prince\Engine\bin\prince.exe';
if (! open(PRINCE, "| $princecmd --baseurl=$baseurl --http-user=$user --http-password=$pass --no-embed-fonts --no-subset-fonts --ssl-blindly-trust-server -")){
print "Error starting Prince\n";
exit;
}
print PRINCE $html || die "can't write to prince; $!";
close(PRINCE);
this is the error message returned from Prince:
prince: http://www.w3.org/TR/html4/strict.dtd:81: error: xmlParseEntityDecl: entity ContentType not terminated prince: http://www.w3.org/TR/html4/strict.dtd:81: error: Content error in the external subset prince: -:11: error: Opening and ending tag mismatch: META line 3 and HEAD prince: -:11: error: AttValue: " or ' expected prince: -:11: error: attributes construct error prince: -:11: error: Couldn't find end of Start Tag TABLE line 11 prince: -:21: error: Opening and ending tag mismatch: br line 21 and h2 prince: -:30: error: Opening and ending tag mismatch: hr line 22 and TD prince: -:30: error: Opening and ending tag mismatch: h2 line 21 and TR prince: -:30: error: Opening and ending tag mismatch: hr line 15 and TABLE prince: -:30: error: Opening and ending tag mismatch: TD line 11 and BODY prince: -:30: error: Opening and ending tag mismatch: TR line 11 and HTML prince: -:31: error: Premature end of data in tag BODY line 11 prince: -:31: error: Premature end of data in tag HEAD line 2 prince: -:31: error: Premature end of data in tag HTML line 2 prince: -: error: could not load input file prince: error: no input documents to process
It looks like the html is not well formed but it's the exact same html that I am passing the other servers that work. I suspect that SSL is the problem, I used --ssl-blindly-trust-server. Am I missing something?
thanks - dorian@uaqa.com