web.utilSetRequestUrl

Sets a string to be the request url for the next request sent in the ConversationClosed An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..

Syntax

             web.utilSetRequestUrl ( <urlStr> );
Argument Description
aUrlStr

The string to be set as the absolute URL for the new request. For example, http://www.site.com/bin/cgi.exe?a=b

Do not pass a URL-encoded string.

Return Values

Not applicable

Parameterization

All input arguments can be parameterized using standard parameterization.

General Information

This is a utility function that can be called from callback routine Request Callback.

LoadRunner Professional encodes the string for URL. Pass the string with spaces and special characters. If you pass a url-encoded string, it may be unusable after the encoding is applied to an already encoded string.

Example

web.utilSetRequestUrl("http://myserver/mypath.htm");

See also: Example: Asynchronous Conversations

Concept Link IconSee Also