For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Shyamkrish_2321's avatar
Shyamkrish_2321
Icon for Nimbostratus rankNimbostratus
Nov 02, 2015

Accessing Sharepoint Data through ASP.net service

Hi,

 

I wrote ASP. Net service which invokes REST API calls on our SharePoint server and gets the data.

 

This service is running on out of our company network.

 

Currently it is implemented as same as browser access our SharePoint server.

 

I'm able to get data through making http calls by passing credentials.

 

But instead of authentication each time I'm storing "MRHSession" key in web context and next subsequent REST API calls I'm passing to the cookie to get the data, as browser does.

 

But here I'm not getting null data and I get response code as OK.

 

The only difference I sees from the browser is, the "MRHSession" ID is getting updated when it POST the credentials... But in my services program this is not getting updated.

 

Please let me know If you want code snippet to understand what exactly I'm doing..

 

Thanks in advance...

 

Regards, Shyam