Home Dashboard Directory Help
Search

Bug in Invoke-Webrequest by robesmithjr


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 806608
Opened: 10/25/2013 11:49:53 AM
Access Restriction: Public
1
Workaround(s)
view
1
User(s) can reproduce this bug

Description

Hi,

I am running into an issue with invoke-webrequest in Powershell 4. See below.

Set $tag to any Dell Service tag for the example.

$uri="http://www.dell.com/support/troubleshooting/us/en/04/Servicetag/" + $tag + "?c=us&l=en&s=bsd&t=warranty"
$dell=invoke-webrequest -uri $uri

Trying to read the $dell variable results in the ISE or Command Prompt session to hang indefinitely. This worked great under Powershell 3.

Thanks,

Robert
Details
Sign in to post a comment.
Posted by robesmithjr on 11/20/2013 at 5:00 PM
Hi,

This issue occurs with Powershell 4.0 on x64 systems. The -Usebasicparsing swich does not resolve the issue.

Rob
Sign in to post a workaround.
Posted by Jason SQL on 10/29/2013 at 2:03 PM
Something is wrong with the DOM for the site and powershell is not catching it.

$uri = "http://www.dell.com/support/troubleshooting/us/en/04/Servicetag/123456?c=us&l=en&s=bsd&t=warranty"
Invoke-WebRequest -Uri $uri -UseBasicParsing