Highlighted
Trusted Contributor.
Trusted Contributor.
3337 views

Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168.21.176/C

Hi

Am able to record a web application,  http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ using, WebHttpHtml protocol and able to compile as well but while replaying am getting the following error, Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/List"   [MsgId: MERR-26628]

I have attached the script for your reference as well

Please refer the same and let me know how to fix this issue

Appreicate your help

Thanks

Raghav

 

 

 

0 Likes
6 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168

Hello,

Is it possible that you need to authenticate in order to access to the URL that fails?

Regards,

Shlomi

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168

Appreciate your response !!

Yes i have given the credentials and those values are correlated as well

Please let me know the fix for the error

Ta!
Raghav

 

 

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168

Hi,

As shlomi told, you are not authenticated to that URL. Check your missing headers. For citrix based URL , specific session will be passing in the headers.

Regards
Raghul
0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168

Hi Ragul

 

Am attaching the recorded script  and the error msg as well for your reference. Do let me know any modifications need to be made 

 

i am using multiple protocol for recording 

Citrix ICA, Web HTTP

Recorded script

Action()
{

web_add_cookie("CtxsPasswordChangeAllowed=true; DOMAIN=192.168.21.176");

web_url("Nmrcl-CtxWeb",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t15.inf",
"Mode=HTML",
EXTRARES,
"Url=receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM,
"Url=custom/style.css", ENDITEM,
"Url=receiver/js/external/hammer.v2.0.2.min_5507D46265FF2372.js", ENDITEM,
"Url=receiver/js/external/velocity.min_51C6C258BB124409.js", ENDITEM,
"Url=receiver/js/external/slick.min_FEB62CC230E2BA2A.js", ENDITEM,
"Url=receiver/js/ctxs.core.min_1D6DC421BAD069AE.js", ENDITEM,
"Url=receiver/js/ctxs.webui.min_DE392E359134A54E.js", ENDITEM,
"Url=receiver/images/1x/folder_template_C13BB96DEBC9F30F.png", ENDITEM,
"Url=receiver/images/1x/CitrixReceiver_WebScreen_CBE548FB8FEE049E.png", ENDITEM,
"Url=receiver/images/common/ReceiverFullScreenBackground_46E559C0E6B5A27B.jpg", ENDITEM,
"Url=receiver/js/external/jquery.dotdotdot.min_E12BB49CEDE48AB1.js", ENDITEM,
"Url=custom/script.js", ENDITEM,
"Url=custom/strings.en.js", ENDITEM,
"Url=receiver/images/1x/viewSprite_B2F322BDCB824FAF.png", ENDITEM,
"Url=receiver/images/1x/actionSprite_531B7A6FF85CA98E.png", ENDITEM,
"Url=receiver/images/common/authspinner_B0BCD339560CA593.gif", ENDITEM,
"Url=receiver/images/1x/CitrixStoreFront_auth_14B96BFF2B0A6FF8.png", ENDITEM,
"Url=receiver/images/1x/spinner_white_auth_button_53FD5A337A529DA7.gif", ENDITEM,
"Url=receiver/images/1x/CitrixReceiverLogo_Home_5C24BCEC5A182425.png", ENDITEM,
"Url=receiver/images/1x/search_close_BC5A22358E58905F.png", ENDITEM,
"Url=receiver/images/1x/ico_search_E84E3D63D821F80D.png", ENDITEM,
"Url=receiver/images/1x/img_favorites_empty_7FBE69CFC0FDDB2D.png", ENDITEM,
"Url=receiver/images/1x/spinner_5CF0D1C8A76AAC8E.png", ENDITEM,
"Url=Resources/Icon/L0NpdHJpeC9ObXJjbC1DdHgvcmVzb3VyY2VzL3YyL1dFY3dPREZXZURaSGF6bFZXVWxhUzFkUlRtdGtRMFJIYkVodlBRLS0vaW1hZ2U-?size=128", ENDITEM,
"Url=Resources/Icon/L0NpdHJpeC9ObXJjbC1DdHgvcmVzb3VyY2VzL3YyL2NuaERaM0IzUjFodVIxWXZiMDFOT1ZwYVVFb3hTbVZrWjFOM1BRLS0vaW1hZ2U-?size=128", ENDITEM,
"Url=receiver/images/1x/ico_desktop_ready_482FD91B201F2A55.png", ENDITEM,
LAST);

web_custom_request("Configuration",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Home/Configuration",
"Method=POST",
"Resource=0",
"RecContentType=application/xml",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t16.inf",
"Mode=HTML",
"EncType=",
LAST);

web_submit_data("List",
"Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/List",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t17.inf",
"Mode=HTML",
ITEMDATA,
"Name=format", "Value=json", ENDITEM,
"Name=resourceDetails", "Value=Default", ENDITEM,
LAST);

web_add_cookie("CtxsPluginAssistantState=Done; DOMAIN=192.168.21.176");

web_custom_request("GetAuthMethods",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Authentication/GetAuthMethods",
"Method=POST",
"Resource=0",
"RecContentType=application/xml",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t18.inf",
"Mode=HTML",
"EncType=",
LAST);

web_custom_request("Login",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ExplicitAuth/Login",
"Method=POST",
"Resource=0",
"RecContentType=application/vnd.citrix.authenticateresponse-1+xml",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t19.inf",
"Mode=HTML",
"EncType=",
EXTRARES,
"Url=http://www.bing.com/favicon.ico", "Referer=", ENDITEM,
LAST);

web_submit_data("LoginAttempt",
"Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ExplicitAuth/LoginAttempt",
"Method=POST",
"RecContentType=application/xml",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t20.inf",
"Mode=HTML",
"EncodeAtSign=YES",
ITEMDATA,
"Name=username", "Value=Ribuser", ENDITEM,
"Name=password", "Value=User@123", ENDITEM,
"Name=saveCredentials", "Value=false", ENDITEM,
"Name=loginBtn", "Value=Log On", ENDITEM,
"Name=StateContext", "Value=", ENDITEM,
LAST);

web_submit_data("List_2",
"Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/List",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t21.inf",
"Mode=HTML",
ITEMDATA,
"Name=format", "Value=json", ENDITEM,
"Name=resourceDetails", "Value=Default", ENDITEM,
LAST);

web_custom_request("GetUserName",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Authentication/GetUserName",
"Method=POST",
"Resource=0",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t22.inf",
"Mode=HTML",
"EncType=",
LAST);

web_submit_data("ListAvailable",
"Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Sessions/ListAvailable",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t23.inf",
"Mode=HTML",
ITEMDATA,
"Name=resourceTypes", "Value=Citrix.MPS.Application", ENDITEM,
LAST);

web_submit_data("Q29udHJvbGxlci5OTVJDTC1UZXN0",
"Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/GetLaunchStatus/Q29udHJvbGxlci5OTVJDTC1UZXN0",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t24.inf",
"Mode=HTML",
ITEMDATA,
"Name=createFileFetchTicket", "Value=false", ENDITEM,
LAST);

web_set_sockets_option("SSL_VERSION", "2&3");

web_add_cookie("SRCHD=AF=NOFORM; DOMAIN=iecvlist.microsoft.com");

web_add_cookie("SRCHUSR=DOB=20170206; DOMAIN=iecvlist.microsoft.com");

web_url("iecompatviewlist.xml",
"URL=https://iecvlist.microsoft.com/IE11/1434748155000/iecompatviewlist.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t25.inf",
"Mode=HTML",
LAST);

web_add_cookie("SRCHD=AF=NOFORM; DOMAIN=r20swj13mr.microsoft.com");

web_add_cookie("SRCHUSR=DOB=20170206; DOMAIN=r20swj13mr.microsoft.com");

web_url("iecompatviewlist.xml_2",
"URL=https://iecvlist.microsoft.com/IE11/1434748155000/iecompatviewlist.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t26.inf",
"Mode=HTML",
EXTRARES,
"Url=https://r20swj13mr.microsoft.com/ieblocklist/v1/urlblockindex.bin", "Referer=", ENDITEM,
LAST);

web_add_cookie("CtxsDesktopAutoLaunchDone=no; DOMAIN=192.168.21.176");

web_custom_request("Disconnect",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Sessions/Disconnect",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t27.inf",
"Mode=HTML",
"EncType=",
LAST);

web_custom_request("Logoff",
"URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Authentication/Logoff",
"Method=POST",
"Resource=0",
"Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
"Snapshot=t28.inf",
"Mode=HTML",
"EncType=",
LAST);

return 0;
}

 

Ta!
Raghav

 

0 Likes
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Re: Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168

Hi.

I have the same problem. Are you solved this problem?

Thanks

Carlos

Highlighted
Respected Contributor.
Respected Contributor.

Re: Load runner error Code : Error -26628: HTTP Status-Code=403 (Forbidden) for "http://192.168

Hi,

I have the same issue for 2 scripts. Any answer about this ?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.