Testing the application with .Net Core in a console setting seems to work as expected, outputting the proper cf_clearance cookies and allowing access past a Cloudflare restricted webpage.
Attempting to use the same code, in a WinForms application (Targeting .Net Framework) results in the application hanging and no further code execution. Intercepting the network traffic shows that the application did make the initial request to "uam.hitmehard.fun" but no further requests are made to validate the Cloudflare challenge and return proper cookies.
Testing the application with .Net Core in a console setting seems to work as expected, outputting the proper cf_clearance cookies and allowing access past a Cloudflare restricted webpage.
Attempting to use the same code, in a WinForms application (Targeting .Net Framework) results in the application hanging and no further code execution. Intercepting the network traffic shows that the application did make the initial request to "uam.hitmehard.fun" but no further requests are made to validate the Cloudflare challenge and return proper cookies.