- Code: Select all
string surl = "http://127.0.0.1:1308/MiaApp/MiaApp.xml"
//
IDMap idm = new()
idm.setValue("ID_TYPE", "POST")
idm.setValue("ID_NOERROR", true)
idm.setValue("ID_AUTOPROXY", true)
idm.setValue("X-HTTP-Method-Override", "Login")
idm.setValue("username", Username)
idm.setValue("password", Password)
IDArray ida = idm.getKeys()
string headers = ""
for (int j = 0; j < ida.length(); j = j + 1)
{
string key = ida.getValue(j)
string value = idm.getValue(key)
headers = headers + key + ":" + value + "\n"
}
idm.clear()
idm.setValue("ID_HEADERS", headers)
string resp = NuovaApplicazioneWeb.getHTTP(surl, idm, ...)
Da postman tutto corretto... da Inde
(Login) Err : La lunghezza non può essere minore di zero. Nome parametro: length
Ammetto di essere perplesso... aggiungo che mi restituisce un XML di un classe DOC