Using a Plugin for the First Time

In the following example we perform a basic URL Redirect using a Plugin.

If you need to follow a redirect or any other full URL links example: http://www.apicasystem.com you need to use a Plugin to do this.

By default you can only extract a partial request and assign it to a var and then use that var in place of any other text.

But if you need to be able to use a full URL as a extraction source this is the way you need to go.

In this example i have used a basic redirect on the main page of apicasystem.com

When landing on this page you can see in the screenshot below that we do get several redirects to end up first under the www subdomain and the protocol is changed from http to https.

To follow this redirect if it would change we need to extract the url that’s received in the redirect and reassign it.

When clicking the first URL you will get this screen:

Here we have a Location header field in the response header that we can extract by clicking on the blue/red icon next to the Location header value seen below:

This will show you the following screen:

Enter a “ as the token delimiter and map your extract to a variable name of your chosing and clicking the Extract button.

When you are done this is what you will see:

Now select the next url call (the one where the redirect lands you on) by clicking on that specific url call in your script. This will give you the following screen.

Here select the “Add Plug-In” button on your lower right:

Select the “Assign Var to URL path” Plugin from the dropdown list and press Continue.

Select the variable that you have extracted from the Location redirect and select where the plugin should be executed. (this is not available for all plugins)

When you are done this is what you should see, this is a successful redirect extract and you can now execute the script with the redirect dynamically extracted and followed every time.

3 Likes