Locked topic

This topic has been locked due to inactivity for a long period of time. If you have a question, please create a new topic by clicking here.
BhaskarHallibu Student
Student
1 0 0
Message 1 of 8
3,556
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

Hi,

 

When i am trying to record and web application which is launched on Sharepoint i have below script

web_custom_request("ProcessQuery"
        "URL=http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"
        "Method=POST"
        "Resource=0"
        "RecContentType=application/json"
        "Referer=http://vc1cgr01cgi006:9090/Lists/DSPortalBase/Home.aspx#"
        "Snapshot=t2.inf"
        "Mode=HTML"
        "EncType=text/xml"
        "Body=<Request xmlns=\"http://schemas.microsoft.com/sharepoint/clientquery/2009\" SchemaVersion=\"15.0.0.0\" LibraryVersion=\"15.0.0.0\" ApplicationName=\"Javascript Library\"><Actions><Query Id=\"23\" ObjectPathId=\"2\"><Query SelectAllProperties=\"true\"><Properties /></Query></Query><Query Id=\"24\" ObjectPathId=\"5\"><Query SelectAllProperties=\"true\"><Properties /></Query></Query></Actions><ObjectPaths><Property Id=\"2\" ParentId=\"0\" Name=\"Site\" /><Property Id=\"5\" ParentId=\"0\" Name=\""
        "Web\" /><StaticProperty Id=\"0\" TypeId=\"{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}\" Name=\"Current\" /></ObjectPaths></Request>"
        LAST);

 

But when i am replaying the script i am getting HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery", can anybody please let me know what is the solution for this issue.

 

Thanks,

Bhaskar V

7 REPLIES
ERDF Student
Student
1 0 0
Message 2 of 8
3,525
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

hi !

 

Same problem here, have you find a solution?

0 Kudos
SylvainG Honor Student
Honor Student
2 0 1
Message 3 of 8
3,493
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

Hi guy, I got it :

With firebug, you can see in the header of the ProcessQuery a key named X-RequestDigest witch missing in the ProcessQuery function of Loadrunner. You must add this before the ProcessQuery to made this working. I explain :

 

1 - Do the correlation of the __REQUESTDIGEST value in the last URL called :

web_reg_save_param("p_requestDigest",  "LB/IC= id=\"__REQUESTDIGEST\" value=\"", "RB/IC=\"", "ORD=1", LAST );

 

this work for me, adapt it if it fails

 

2 - Add the X-RequestDigest key in the header :

web_add_header("X-RequestDigest", "{p_requestDigest}");

 

3 - Call the ProcessQuery

JohnSnow Student
Student
1 0 0
Message 4 of 8
3,313
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

Hello SylvainG,

 

 

I have done all 3 steps, but still receive: " Error -26628: HTTP Status-Code=403 (FORBIDDEN)...".

My p_requestDigest parameter takes value = "0x04D111DF74F73AC82793358EC14B23B32E9945FEF70A592618ED344A29FBEB6946D2FA7AC08E80744B9AF988F03EE6ED229043486B45B5B5C7D953BB2C96D8BD,27 Mar 2014 07:10:46 -0000" is this proper value?

 

 

0 Kudos
SylvainG Honor Student
Honor Student
2 0 1
Message 5 of 8
3,309
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

You can see the good value with firebug (extension of firefox)

Go to the step you have the 403 error then search for requestdigest value in the header.

 

hope it helps

0 Kudos
CharlesLewisNic Student
Student
1 0 0
Message 6 of 8
2,705
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

Charles Lewis Nichols this is mine phone [Personal Information Removed] and there was an error code upon hear and please I won't it of think you

0 Kudos
hp_user_10 Student
Student
1 0 0
Message 7 of 8
1,922
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

Hey,

 

I am facing this same issue and tried the solution suggested by you but still no luck.

 

Is there any other solution to resolve this issue?

0 Kudos
WayneConnection Student
Student
1 0 0
Message 8 of 8
1,069
Flag Post
HP Recommended

HTTP Status-Code=403 (FORBIDDEN) for "http://vc1cgr01cgi006:9090/_vti_bin/client.svc/ProcessQuery"

Same issue as described above:  Loadrunner 12.53 / Sharepoint 2016 test target.

Have reset the parameter delimiters to remove complaints about the { } within the web_custom_request.

Would like to try the correlation/addition of header suggested above but I don't have code that matches.

 

Any other suggestions on how to correct - thanks in advance.

 

Error returned - tried with and without correlation for script (simply hitting our sharepoint home page.

Action.c(848): Continuing after Error -26628: HTTP Status-Code=403 (FORBIDDEN) for "https://xxx.qa.yyy.int/_vti_bin/client.svc/ProcessQuery", Snapshot Info [MSH 1 98]   [MsgId: MERR-26628] [Time:2017-07-18 13:39:22]

 

web_custom_request("ProcessQuery", 
        "URL=https://xxx.qa.yyy.int/_vti_bin/client.svc/ProcessQuery", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=https://xxx.qa.yyy.int/Pages/default.aspx", 
        "Snapshot=t2739.inf", 
        "Mode=HTTP", 
        "EncType=text/xml", 
        "Body=<Request xmlns=\"http://schemas.microsoft.com/sharepoint/clientquery/2009\" SchemaVersion=\"15.0.0.0\" LibraryVersion=\"16.0.0.0\" ApplicationName=\"Javascript Library\"><Actions><ObjectPath Id=\"1\" ObjectPathId=\"0\" /><ObjectPath Id=\"3\" ObjectPathId=\"2\" /><ObjectPath Id=\"5\" ObjectPathId=\"4\" /><ObjectPath Id=\"7\" ObjectPathId=\"6\" /><ObjectPath Id=\"9\" ObjectPathId=\"8\" /><ObjectIdentityQuery Id=\"10\" ObjectPathId=\"8\" /><ObjectPath Id=\"12\" ObjectPathId=\"11\" /><Query Id=\""
        "13\" ObjectPathId=\"11\"><Query SelectAllProperties=\"true\"><Properties /></Query><ChildItemQuery SelectAllProperties=\"true\"><Properties /></ChildItemQuery></Query></Actions><ObjectPaths><StaticProperty Id=\"0\" TypeId=\"{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}\" Name=\"Current\" /><Property Id=\"2\" ParentId=\"0\" Name=\"Site\" /><Property Id=\"4\" ParentId=\"2\" Name=\"RootWeb\" /><Property Id=\"6\" ParentId=\"4\" Name=\"Lists\" /><Method Id=\"8\" ParentId=\"6\" Name=\"GetByTitle\"><Parameters>"
        "<Parameter Type=\"String\">Alerts</Parameter></Parameters></Method><Method Id=\"11\" ParentId=\"8\" Name=\"GetItems\"><Parameters><Parameter TypeId=\"{3d248d7b-fc86-40a3-aa97-02a75d69fb8a}\"><Property Name=\"DatesInUtc\" Type=\"Boolean\">true</Property><Property Name=\"FolderServerRelativeUrl\" Type=\"Null\" /><Property Name=\"ListItemCollectionPosition\" Type=\"Null\" /><Property Name=\"ViewXml\" Type=\"String\">&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;And&gt;&lt;Geq&gt;&lt;FieldRef Name="
        "_EndDate /&gt;&lt;Value Type='DateTime'&gt;&lt;Today/&gt;&lt;/Value&gt;&lt;/Geq&gt;&lt;Leq&gt;&lt;FieldRef Name=StartDate /&gt;&lt;Value Type='DateTime'&gt;&lt;Today/&gt;&lt;/Value&gt;&lt;/Leq&gt;&lt;/And&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;</Property></Parameter></Parameters></Method></ObjectPaths></Request>", 
        LAST);

0 Kudos
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation