Hi to all,
for my Mobile Application I need that LoadRunner (v 12.02) don't mark as an error the http status code 401.
In fact the first request is:
web_submit_data("init",
"Action=http://XXX.YYY.ZZZZ.it:81/Application/apps/services/api/Application/android/init",
"Method=POST",
"RecContentType=application/json",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=isAjaxRequest", "Value=true", ENDITEM,
"Name=x", "Value=0.7308061446528882", ENDITEM,
LAST);
and the correct response is:
HTTP/1.1 401 Unauthorized\r\n
Date: Wed, 10 Aug 2016 14:19:09 GMT\r\n
X-Powered-By: Servlet/3.0\r\n
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV
INT DEM PRE"\r\n
WWW-Authenticate: WL-Composite-Challenge\r\n
Expires: Thu, 01 Jan 1970 00:00:00 GMT\r\n
Cache-Control: no-cache, no-store, must-revalidate\r\n
Pragma: no-cache\r\n
Content-Length: 96\r\n
Keep-Alive: timeout=10, max=100\r\n
Connection: Keep-Alive\r\n
Content-Type: application/json; charset=UTF-8\r\n
Content-Language: en-US\r\n
\r\n
714ms: 96-byte response body for "http://XXX.YYY.ZZZZ.it:81/Trenitalia/apps/services/api/Trenitalia/android/init" (RelFrameId=1, Internal ID=1)
/*-secure-\n
{"challenges":{"wl_antiXSRFRealm":{"WL-Instance-Id":"nh991r2o7eduhaefo3ltl74gaq"}}}*
because here I parametrize che "WL-Instance-Id"'s value for switching it in all subsequent requests.
I have tried from Run-Time Settings > Internet Protocol > HTTP > and flag "Mark HTTP errors as warning" but when I reply the script it fails. There is a different method for do this?
Thank you in advance
Ilaria