B
B
biohan2016-10-05 23:44:22
C++ / C#
biohan, 2016-10-05 23:44:22

How to set content-type in xNet?

Hello! I want to send a PUT request with my content-type
request.Raw(xNet.HttpMethod.PUT, "site.ru", >>>HTTPCONTENT<<<)
how to specify content-type in HTTPCONTENT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#algooptimize #bottize, 2016-10-05
@user004

var content = new StringContent(str)
            {
                ContentType = contentType
            };

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question