News for hackers. Stuff that matters.
Re:Two Months with Powershell on a Unix by jve on Thursday April 23, 2020 @09:53PM (#22963830)
Well, you use Invoke-RestMethod for JSON/XML stuff.

Or decide yourself for Invoke-WebRequest to pipe it with whatever the data: ConvertFrom-{JSON,XML,CSV}

With Invoke-WebRequest you get back headers, raw response, etc - and you get to decide whats next. With the RestMethod - just the content as an object.

There are no comments on this comment yet.