I'm trying to write an application page that loads the RSS feed from a list inside the same SharePoint environment (but in another site collection).
The SharePoint environment uses basic authentication (based on Active Directory).
I do this by using the HttpWebRequest object and I pass through CredentialCache.DefaultNetworkCredentials to authenticate when opening the RSS feed, in order to pass through the credentials of the currently logged on user.
On my test environment this seems to work good. Before I got "unauthorized", and when passing the credentials it would show me the RSS feed.
Now I moved my code to another development server, and there this fails, it still gives me "unauthorized" while I can open the RSS feed manually without any problems. When trying to print the username that is passed through it returns an empty string. I found
out on Google that DefaultNetworkCredentials always returns empty values for username/domain/password, but how can I possibly know then what credentials are passed through ???
Or do I have to follow another approach in order to load a list RSS feed that requires authentication ?
I cannot use a fix username/password, as I need to load the RSS feed under the same credentials as the user who opens the application page.
Thanks in advance!
View Complete Post