Я использую Restsharp. пытается отправить 2 параметра, 1-yoksis_birim_id (int)
2-квалификация: (строка [json]). Но когда я пытаюсь получить 1-й параметр, это пустой ответ.
это мои коды; enter code here
string styleCreateUrl = "http://xxxx/service/qualificationcreate";
var client = new RestClient(styleCreateUrl);
request.AddHeader("Postman-Token", "xxxx");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("Authorization", string.Format("Bearer " + token), ParameterType.HttpHeader);
request.AddParameter("yoksis_birim_id", bolumid, ParameterType.RequestBody);
request.AddParameter("qualification", bolum, ParameterType.RequestBody);
и это образец тела в php:
$request->setBody('------WebKitFormBoundary7MA4
Content-Disposition: form-data; name="yoksis_birim_id"
xxxx
------WebKitFormBoundary7MA4
Content-Disposition: form-data; name="qualification"
{"belge_type":"","thematic_code":[],"language":{"tr_TR":{"title":"","nonpreferredterms":"","description":"","further_info":"","further_source":"","url":"","eqflevel":"","nqflevel":"","informationlang":"","sourceofinformation":"","sup_lang":"","sup_url":"","nationaloccupation":"","relation":""},"en_US":{"title":"","nonpreferredterms":"","description":"","further_info":"","further_source":"","url":"","eqflevel":"","nqflevel":"","informationlang":"","sourceofinformation":"","sup_lang":"","sup_url":"","nationaloccupation":"","relation":""}}}
------WebKitFormBoundary7MA4Y');