PowerShell/Polaris

Use `-UseBasicParsing` in all `Invoke-WebRequest` calls so that IE is not a dependency

Closed this issue · 5 comments

For every Invoke-WebRequest in our tests, we need to add -UseBasicParsing. Without it, PowerShell on Windows will use IE. We don't want that to happen because we don't need complex parsing of the response body.

Thanks to @BladeFireLight for pointing this out!

If think that is the default in v6, without it though it kills the validations on server core.

Yeah there is no -UseBasicParsing in v6 so we'll have to check for that.

I just found out that v6 has -UseBasicParsing it just doesn't do anything because basic parsing is the default. We'll be able to simply add that flag and it should work everywhere.

Fixed in #94 😄