Printer FriendlyEmail Article Link

iTest: How to pass the JSON as body content while sending HTTPS request to REST server?

Environment/Versions
  • Spirent iTest
Answer
  • We provide the body content under the Raw tab of the interactive iTest REST session.

    Example:
    If the body content which you need to pass is:
    {\"aaaUser\":{\"attributes\":{\"name\":\"admin\",\"pwd\":\"admin123\"}}}

    Remove the slashes ("\") and pass the text in interactive iTest REST session:
    {"aaaUser":{"attributes":{"name":"admin","pwd":"admin"}}}

Product : iTest Enterprise