Skip to content

Invoke-WebRequest errors if Internet Explorer is not installed #3042

Closed

Description

By default, Invoke-WebRequest relies on Internet Explorer components to parse the html (user retrieves it via the .parsedhtml property), however in Azure Functions and Containers, IE is not present so if -UseBasicParsing is not specified, you get an error saying that IE is not installed.

Expected behavior is for Invoke-WebRequest to default to -UseBasicParsing if IE is not present (perhaps output a warning if that switch is not specified as ParsedHtml property will be null)

Activity

  1. added this to the milestone on Jan 24, 2017
  2. daxian-dbw commented on Feb 1, 2017

    @daxian-dbw
    Member

    Is this bug specific to Windows PowerShell?

    Currently in powershell core, we always use basic parsing because we haven't figure out a way to depend on mshtml.dll in CoreCLR. See the code here. It would be great that we resolve this dependency issue so that Invoke-WebRequest can continue to use IE to parse html response when IE is available.

  3. SteveL-MSFT commented on Feb 1, 2017

    @SteveL-MSFT
    MemberAuthor

    Based on the code, this appears to be a Windows PowerShell specific issue (as Azure Functions uses Windows PowerShell v4 today). We won't be making this fix in Windows PowerShell v5, so resolving.

  4. iSazonov commented on Mar 8, 2017

    @iSazonov
    Collaborator

    Tracked in #2867

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-Enhancementthe issue is more of a feature request than a bugResolution-Won't FixThe issue won't be fixed, possibly due to compatibility reason.WG-Cmdletsgeneral cmdlet issues

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions