PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Convert ASP.Net page with Java Applet forms authentication
   PostPosted: 07 Sep 2012, 14:14 
Hi,

The website I'm testing PD4ML is an ASP.Net website that uses Java applet to take a screenshot of the current ASP.Net page. The website uses Form based Authentication.

Whenever I call PD4ML.render(URL, ByteArrayOutputStream) to print the current page it gets redirected to the login page and the login page gets printed.

I tried option 4 given in the link http://pd4ml.com/cookbook/pd4ml_session_id_and_authorization.htm and it still goes to the login page.

I found a similar question in your forum http://pd4ml.com/support/html-pdf-faq-f1/pd4ml-net-form-authenticated-page-showing-login-page-in-pdf-t620.html but no one has answered this question.

I've also tried the solution provided in http://stackoverflow.com/questions/201699/sharing-asp-net-session-cookies-with-a-java-applet

Could you please provide some tips on how to solve this issue?


  Subject: Re: Convert ASP.Net page with Java Applet forms authentication
   PostPosted: 12 Sep 2012, 09:54 
You need to determine how the ASP.Net application propagates session ID. It could be a session ID embedded to URL or (most probably) a cookie.

Cookie can be added to HTTP request this way:

pd4ml.setCookie( "JSESSIONID", cookieValue );
where cookieValue is something like that: "9034657927465;path=/"

JSESSIONID keyword is specific for Java, .Net uses anything else.


  Subject: Re: Convert ASP.Net page with Java Applet forms authentication
   PostPosted: 17 Sep 2015, 14:16 
More about......Difference between Authentication and Authorization

Chris



[Reply]     [ 3 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share