Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
! ! !@@@
Is there a way to access current HttpServletRequest in Thingworx service? (defined in an extension?)
I could see there is a way to get current session.
ThreadLocalContext.getSession();
but not sure how we can get a request
Hello,
ThreadLocalContext.getSession() does not work...
You can call a servlet stored on the server thanks to the ContentLoader class, but it does not work in all cases...
Good luck.