Download a intranet site from a windows form (401 error)
-
Hello I've got once again a problem with an application of mine.. Im building and application which checks a defined list of links. This windows form application should be able to run from any computer within our company. We have different security zones and we use a proxy configurated by with a automatic configuration script. Now for internet website I haven't any problems. I just use the default proxy and fill the credentials with my user informations. But for the websites into the intranet it doesn't work like that. I just always get a 401 (unauthorized) error message. I know that it's possible to solve that problem without knowing our network security exactly but hopefully anybody has an idea anyway. :-) Thanks a lot and best reagrds
-
Hello I've got once again a problem with an application of mine.. Im building and application which checks a defined list of links. This windows form application should be able to run from any computer within our company. We have different security zones and we use a proxy configurated by with a automatic configuration script. Now for internet website I haven't any problems. I just use the default proxy and fill the credentials with my user informations. But for the websites into the intranet it doesn't work like that. I just always get a 401 (unauthorized) error message. I know that it's possible to solve that problem without knowing our network security exactly but hopefully anybody has an idea anyway. :-) Thanks a lot and best reagrds
how does your application access the link ?
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
how does your application access the link ?
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
Over the System.Net.WebRequest class WebRequest request = WebRequest.Create(Path); request.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; (HttpWebResponse)request.GetResponse();
-
Over the System.Net.WebRequest class WebRequest request = WebRequest.Create(Path); request.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; (HttpWebResponse)request.GetResponse();
Remember the way you access your intranet is not the same way you access the internet. so i think you have to create a one function and detect if its internet or Intranet and extract the correct url for each
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
Remember the way you access your intranet is not the same way you access the internet. so i think you have to create a one function and detect if its internet or Intranet and extract the correct url for each
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
hmm.. This I've already done. I was clear that I have to different between internet and intranet otherwise it had worked. But I dont know how can I access to the intranet.. Any idea? Thanks for your help!
-
hmm.. This I've already done. I was clear that I have to different between internet and intranet otherwise it had worked. But I dont know how can I access to the intranet.. Any idea? Thanks for your help!
Now I just trey by chance the way to read the site over the System.Net.WebClient class and it worked pretty well. :-) Actually I have no idea where's the difference but for the moment it's enough, when it works. I'll try to find out why later..