Foros de discusión

Verifying if URL can be viewed by specific user (via external tool)

Jan Tošovský, modificado hace 6 años.

Verifying if URL can be viewed by specific user (via external tool)

Liferay Master Mensajes: 566 Fecha de incorporación: 22/07/10 Mensajes recientes
Dear All,

there are lot of links in our documentation pointing to our portal, but I'd like to verify they are not dead.

However, all links are accessible only after the login. So I have to mimic the login first, then simulate navigation to the URLs and finally to parse the response.

Now I am stuck in the first step, proper authentication. All users are now entering the portal via the login page. After successful login users are redirected to home page or the originally requested page. I suppose some cookies are stored and additional request headers are sent to every request. How can emulate all this efficiently?

Thanks,
Jan
thumbnail
David H Nebinger, modificado hace 6 años.

RE: Verifying if URL can be viewed by specific user (via external tool)

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
From a tool aspect you might try just setting the basic auth headers with the original URL; this may be enough to get you through the authentication without invoking the redirect to their home page.









Come meet me at 2017 LSNA!