Here is what I'm basically doing: I check if a text file containing the stored cookies exists, if it doesn't then I use webviewextra to run some javascript on the login page and log in. Following that I use cookiemanager to extract the cookies and save them to the aforementioned file.
If the file does exist then an HttpJob is defined and I use Job.GetRequest.SetHeader("Cookie",File.Readstring(File.DirInternal,"LoginCookies") to read the file and add the cookies to the httpjob. Of course that line is after the download.
Now here's the tricky part. The code that handles getting the cookies works perfectly fine. However in my main project the cookies don't work. When I tried creating a smaller project to reproduce the bug I was unable to, despite the code handling the cookies being identical.
I have no clue why this happens. I've tried clearing the header - it did nothing. I have also tried clearing the project.
I'm honestly at a loss on this issue. Every variable is, as far as I can tell, the same between the actual project and the test case. Same page, same login, same download method. Any help would be GREATLY appreciated.