This project has moved and is read-only. For the latest updates, please go here.
1
Vote

return null

description

Hi ,
I use Powershell, and HtmlAgilityPack processing page.
Processing supermicro product page (http://www.supermicro.com/products/chassis/3U/836/SC836TQ-R500.cfm), HTMLDocument.LoadHTML return Null.
add-type -Path 'e:\MyDownloads\FTP\Powershell\HtmlAgilityPack.dll'

    $HTMLDocument = New-Object HtmlAgilityPack.HtmlDocument
    $wc = New-Object System.Net.WebClient
    $wc.Encoding= [System.Text.Encoding]::UTF8 

    $uri= "http://www.supermicro.com/products/chassis/3U/836/SC836TQ-R500.cfm"

    Write-Host "获取内容 " $uri ...
    $pagecontent=$wc.DownloadString($uri)

    $result = $HTMLDocument.LoadHTML($pagecontent)
    

comments