webheaderadd and webparseheader function in ajax perspective
I added Webheaderadd("y-yyy-yyyy","dfiughw8e57gvbgib57nrtgnuein5y7") before the ajax call. where y-yyy-yyyy is the security token and "dfiughw8e57gvbgib57nrtgnuein5y7" is the token i got during recording..
I was able to replay the script for three times.Later the token got expired.this token resides in one of the cookieset as well.How to parse this token.i tried with webresponseparsehdr as well.But not sure on how to use the syntax..tried with different syntax.Kindly provide a solution in an uderstandable way
I'd suggest in the first instance to make sure you have cleared cache and cookies before recording your use case. If you already use the -private flag in your SP recorder browser profile, don't worry about this.
If the "dfiughw8e57gvbgib57nrtgnuein5y7" value is generated client-side, then you cannot parse it. You'll need to create some code in your script to generate a unique value for each run. You could also of course consider calling values from an external file but either way it's important to know how the cookie is getting set, how its getting set and the effect this has on the application.
If its set by the server, then search for that value in the recorded TrueLog and see where it first comes in. If it's via a server response, parsing should be possible.
For some more details on cookies and how we handle them, please check this article - community.microfocus.com/.../9816.how-does-silkperformer-handle-cookies.aspx,
Hope it helps!!