w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
c# screen scraping and getting all the cookies for secured access to a website

HttpWebRequest had a problem with cookies.

The problem was that a cookie that was assigned to "server.com" would be changed to ".server.com". However, "server.com" did not match ".server.com".

If you are using a framework older than (I think it is 3) you are probably experiencing this problem.

The work around is to use e.g. "www.server.com" in your request, this will match cookies assigned to ".server.com".

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.