C
C#2y ago
wido5637

CSharp how to make an http request get and post for browser AI browsing like login on a website etc

My problem is the next I m trying to login on a website via C# win forms project app I m stuck at the http request part where I don't know how to make a request to get the login form
13 Replies
Buddy
Buddy2y ago
Which website are you trying to login to?
wido5637
wido56372y ago
playstation network
Buddy
Buddy2y ago
For what?
wido5637
wido56372y ago
I sometimes give my account to a friend and I have a problem with switching problems and sometimes I want to check if I switched the password and I want to make an app so it's easier with switching password
Buddy
Buddy2y ago
Yeah, most definitely violates ToS.
wido5637
wido56372y ago
why? whose tos
Buddy
Buddy2y ago
If you use a private API to log in, most of the time you're violating the ToS.
wido5637
wido56372y ago
oh I understand where I can find more info about http on c#
Angius
Angius2y ago
HttpClient Class (System.Net.Http)
Provides a class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI.
wido5637
wido56372y ago
thank you can somebody help me with post requests?
Angius
Angius2y ago
Unless you're using an official API, it's most probably against the TOS, so we cannot help you And even if we could, chances are their login form has some sort of a CSRF protection So you won't be able to do anything anyway
wido5637
wido56372y ago
oh I understand
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.