The information you provided is really useful and I could see to a level but i got stuck up in a place.
I am passing the HTTPHeader "Cookie" "<Cookie I received>"
It's throwing me a string error because my cookie is in the below format and contain " " in it which is recognized as the condition is closed as per qlik's statment. Also another issue that whenever a symbol or delimiter is available in the cookie Qlik is not considering and throwing me the error from the string where the delimiter starts.
Example: /YBpAQAAAAAAAAAAAAAu8P2AaQEAACwBC/ from the below cookie.