Jump to content
WAPT Forum
Sign in to follow this  
Guest mstern

URL rewriting

Recommended Posts

Guest mstern

I am trying out WAPT on an ASP.NET application. The session that I recorded has a long random string embedded in all the HTTP URLs. I need to replace that string with another string that is dynamically created when the user logs on. How do I do that?

 

Example: https://hostname:portname/(S(xwue4x2v10kflx...))/Default.aspx was recorded but the session generated by WAPT needs to replace /(S(xwue4x2v10kflxvcm0s3rhfh)) with something like /(S( other random looking stuff)) and the new string was passed back in the previous response.

 

Thanks for any help!

Share this post


Link to post
Share on other sites
Guest angela
I am trying out WAPT on an ASP.NET application. The session that I recorded has a long random string embedded in all the HTTP URLs. I need to replace that string with another string that is dynamically created when the user logs on. How do I do that?

 

Example: https://hostname:portname/(S(xwue4x2v10kflx...))/Default.aspx was recorded but the session generated by WAPT needs to replace /(S(xwue4x2v10kflxvcm0s3rhfh)) with something like /(S( other random looking stuff)) and the new string was passed back in the previous response.

 

Thanks for any help!

 

Hi,

 

You need to create a variable (let's call it SessionID) with the help of the function Search

(LeftBoundary, RightBoundary), where LeftBoundary = "https://hostname:portname/(S(", and RightBoundary = "))/Default.aspx".

 

Then in the URI of requests containing session variable you need to replace https://hostname:portname/(S(xwue4x2v10kflx...))/Default.aspx with https://hostname:portname/(S($Var(SessionID)))/Default.aspx.

 

You can automate this process by specifying parameters for function Search in Settings\Parameterization and then re-recording. In this case the variables should be created automatically.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...