I am using prince to convert to pdf for multiple URLs of a site that requires some cookies to load.
After running command, it is generating pdf for the page authentication error page. As URL path is not open for all.
What I am thinking is there must be some issue while setting up cookies, and I can't seem to debug the issue.
I have tried running different versions of Prince but I can't seem to say confidently that cookies are being set up correctly. I have used all documentation of prince but can't find how to proceed further.
I tried using
1. --cookie=cookie_name=cookie_value;
2. --cookie-file=file_path;
File contained below
Set-Cookie: cookie_name=cookie_value; Path=/; Expires=Wed, 09 Apr 2024 12:00:00 GMT; domain=http://localhost:8080/
Note -
When I am accesible those URLs in browser or postman using cookie, they are returning appropriate response of html there.
After running command, it is generating pdf for the page authentication error page. As URL path is not open for all.
What I am thinking is there must be some issue while setting up cookies, and I can't seem to debug the issue.
I have tried running different versions of Prince but I can't seem to say confidently that cookies are being set up correctly. I have used all documentation of prince but can't find how to proceed further.
I tried using
1. --cookie=cookie_name=cookie_value;
2. --cookie-file=file_path;
File contained below
Set-Cookie: cookie_name=cookie_value; Path=/; Expires=Wed, 09 Apr 2024 12:00:00 GMT; domain=http://localhost:8080/
Note -
When I am accesible those URLs in browser or postman using cookie, they are returning appropriate response of html there.