Skip to content

Invoke-WebRequest not returning forms or parsedhtml #15500

@nchurkin

Description

@nchurkin

Steps to reproduce

$r = Invoke-WebRequest -Uri 'https://github.com/login'
$r.Forms[0]

Expected behavior

Id Method Action   Fields
-- ------ ------   ------
   post   /session {[authenticity_token, ncCnggrETXXZRpc1xgyg6PNDhDi4SEYLKNlGftdSZCfd7ZmfC1x0jdGA28ICG/6UvNGZreSuyQ==], [login_field, ...

Actual behavior

No forms property.

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.Resolution-By DesignThe reported behavior is by design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions