Plus symbol being stripped from UFT API request
Question ID: 107470
0
0

I am running a rest script and when I look at the body of my request I can see the + sign (See Below) but according to development that is being removed before the call is being processed.

Here is the body of my call grant_type=password&username=zzzzzzzzzz&AuthType=3&DeviceAuthToken=abcdabcd+abcdabcd

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on February 27, 2017 7:07 pm
36 views
Answers (1)
0
Private answer

Try to create a custom code node on the canvas.

1. Create customer code node and remember the node name. Mine was CodeActivity127.
2. Create an input parameter myInput and output parameter myOutput.
3. Build the project. (press F8).
4. Go to the custom code event and enter the below code.

var myCA= this.CodeActivity127;
String myInput = myCA.Input.BodyString;
string upAuth = Uri.EscapeDaouttaString(myInput);
myCA.Output.myOutput = upAuth;

5. Change the code ''CodeActivity127'' to the new node created

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on February 27, 2017 7:09 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top