Let me start off by saying, I do not know the best way to title this problem, I apologies if the title is misleading, please feel free to leave suggestions.
I am fairly new to sending POST & GET requests. I worked on an application some time ago that utilized (https://www.directv.com/sports-info/all/all) by pulling the leagues, games, and channels to help sort the data in a format thats easily readable via EXCEL.
Recently, this website was updated (path was changed, and some backend headers were changed), because this occurred, my requests no longer work. I knew the path was the issue so I simply updated all my GET/POST requests via my program to utilize the new path/URL and now I am running into a unknown issue.
The best way to describe the issue is that the program is halting and timing out even with extremely long timeout times, and I am unable to get a response. I can't even get a reliable response using PuppeteerSharp (Basically Chrome Debugging/DevEnv for .NET) Below are things I have tried, and failed. I have no idea what is preventing these requests.
I have tried setting the Origin as the server header access-control-allow-origin
exists with "directv.com" and "mvp.directv.com" rather than the previous "*".
I have tried giving the client a UserAgent to pretend to be Chrome.
I have tried inserting specific cookies gathered from my chrome instance of the website (using PuppeteerSharp & manually inserting them) Cookies: XSRF-TOKEN, directv_session, user_id, etc
I have tried setting large timeouts and short timeouts.
I have tried wireshark-ing to confirm it was not being blocked somewhere by my firewall (wouldn't make sense since I can connect to it via chrome, right?)
Manually set ServerCertificationValidation to true to ensure SSL/TLS isn't the issue.
Tried multiple endpoints such as "https://www.directv.com/sports-info/all/all", "https://www.directv.com/sports-info/options/leagues", "https://directv.com/sports-info/all/custom", etc.
Attempted Post Requests to "https://directv.com/sports-info/options/selected" to set location settings etc.
None of this has worked.
Below is what I am currently working with
var handler = new HttpClientHandler{ ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { Console.WriteLine($"Certificate error: {errors}"); return true; // Only for debugging purposes }};var client = new HttpClient(handler){ Timeout = TimeSpan.FromSeconds(120)};client.DefaultRequestHeaders.Add("Origin", "https://www.directv.com");client.DefaultRequestHeaders.UserAgent.ParseAdd("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36");HttpResponseMessage res_leagues = await client.GetAsync("https://www.directv.com/sports-info/options/leagues");
See the Postman response below (Stuck on Sending Request)
UPDATE:
I failed to try multiple networks, It seems something must be blocking it on my network. I was able to get a response using another network.