Как отправить параметры на POST Https с C#

select table_name 
from information_schema.referential_constraints 
where referenced_table_name = 'parent table here';
5
задан Community 23 May 2017 в 11:55
поделиться

1 ответ

Я бы использовал WebClient.UploadValues :

        using (WebClient client = new WebClient())
        {
            NameValueCollection fields = new NameValueCollection();
            fields.Add("query", query);
            byte[] respBytes = client.UploadValues(url, fields);
            string resp = client.Encoding.GetString(respBytes);
        }
9
ответ дан 14 December 2019 в 01:12
поделиться
Другие вопросы по тегам:

Похожие вопросы: