Hack Forums
[C#] Not getting a response (httpwebrequest) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Not getting a response (httpwebrequest) (/showthread.php?tid=6151548)



Not getting a response (httpwebrequest) - HardStoN - Apr 29, 2021

So im sending a get request to a specific url and im not getting a response, monitored the traffic with fiddler and my request is the same as in the web browser, cookies and headers wise. What am i doing wrong?

Thanks for the help.


RE: Not getting a response (httpwebrequest) - gigajew - Apr 29, 2021

The website in question could have anti-bot software set up such as cloudflare


RE: Not getting a response (httpwebrequest) - SecuroServ - Apr 29, 2021

Could you provide the code that isn't working?
And what do you mean not getting a response? Empty string? Or an exception? Or?


RE: Not getting a response (httpwebrequest) - Scapula™ - Apr 30, 2021

Yes for cloudflare you can find a lot of projects on github for bypass it. Some websites need just a valid user-agent.


RE: Not getting a response (httpwebrequest) - dinozzzz - Apr 30, 2021

Code
Latest Chrome user-agents
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36


Set it like this:
Code
myHttpWebRequest.UserAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0";



RE: Not getting a response (httpwebrequest) - vaiperboy - May 2, 2021

lmao lemme guess, its for a gaming related site? first shooter....