E
E
enwr2020-09-21 21:06:51
C++ / C#
enwr, 2020-09-21 21:06:51

How to authorize on the site with a post request in c#?

I need to programmatically login to a site in c# post request by sending also a cookie

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
Qualiant, 2020-09-22
@enwr

HttpWebRequest
A cookie is the header in the request.
rq.Headers.Add("Cookie", *строка с куками*);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question