I am making a POST API call to proxmox for an authentication token but as soon as I use OutputStreamWriter inside the groovyscript for the active choices parameter it breaks. This currently works on Groovy Script IDE. Are there any alternatives to using the OutputStreamWriter?(it is the only way I have found that has enabled the query to return me the token when passing the params)
def url = new URL(urlString)
def conn = url.openConnection()
conn.setDoOutput(true)
def writer = new OutputStreamWriter(conn.getOutputStream())
writer.write(paramString)
writer.flush()
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)