Hello again
I thought I had solved my previous problem with an orthodox solution and I really got it working fine in my development server.
But now when I try to use the REST services on production service I have crashed in hard to understand obstacle.
I can read a list without any problems (using my own account for now) but when I try to get the profile data (using url:
$curl=siteUrl . "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='$user'";
I get an curl error "Failure when receiving data from the peer". I could think that this comes from the user rights BUT I can run this directly from the browser (as me, myself) and get the output without any problems.
If I change the $siteUrl to refer my dev server, it works flawlessly.
To sum up:
- Reading lists works fine
- This code runs great on dev server (as myself)
- The URL works just like it is, if browsed directly in the browser
Does anybody have any idea how to tackle this problem? I am about to become desperate as time is running and there are people with baseball bats "persuading" me to get something done...
wbr
hank