Aggiunto NKC json x insomnia aggiornato
This commit is contained in:
@@ -61,9 +61,11 @@ namespace NKC_SDK
|
||||
string answ = "";
|
||||
var client = new WebClientWT();
|
||||
client.Headers.Add("user-agent", "NKC_SDK");
|
||||
// importante x evitare errore 415 di dataType non ammesso
|
||||
client.Headers.Add(HttpRequestHeader.ContentType, "application/json");
|
||||
try
|
||||
{
|
||||
// va messo "PUT" e va configurato IIS per accettare PUT
|
||||
answ = client.UploadString(URL, "PUT", payload);
|
||||
answ = "ok";
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user