cli API cx

This commit is contained in:
Paul Schneider 2019-06-25 01:51:23 +01:00
commit 4b07b0fc43
7 changed files with 256 additions and 66 deletions

View file

@ -399,9 +399,11 @@ namespace Yavsc.Authentication
req.ContentLength = body.Length;
req.ContentType = "application/x-www-form-urlencoded";
var s = req.GetRequestStream();
s.Write(body, 0, body.Length);
var auth = await req.GetResponseAsync();
var repstream = auth.GetResponseStream();
var respReader = new StreamReader(repstream);