I
I
iXelper2019-11-24 13:34:27
API
iXelper, 2019-11-24 13:34:27

How to send parameters to HttpClient?

Good afternoon, I started to study POST / GET requests. There were difficulties with sending a POST request with parameters
Please discard an example, nothing is really described in Google - hands are completely down ((
URL: urlExample.ru
Authorization: Bearer [token]
Accept: application/json
Content-type: application/json
Parameter: kod =44789
If it's not difficult to comment on the lines, many thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bashinsky, 2019-11-24
@BashkaMen

You took too low-level thing.
Take something higher for example HttpClient
Here are a couple of examples zetcode.com/csharp/httpclient

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question