Skip to content

Instantly share code, notes, and snippets.

@Dan1el42
Created July 19, 2014 10:49
Show Gist options
  • Save Dan1el42/efabe7cd2d62178e3de8 to your computer and use it in GitHub Desktop.
Save Dan1el42/efabe7cd2d62178e3de8 to your computer and use it in GitHub Desktop.
Param
(
[String]$SerialNumber = 'HU265BM18V',
[String]$ProductNumber = 'H1P31AA'
)
$fields = @(
'tmp_weCountry=us',
"tmp_weSerial=$SerialNumber",
"tmp_weProduct=$ProductNumber",
"product=",
"lc=en",
"dlc=en"
"cc=us"
)
$result=Invoke-WebRequest -Uri 'http://h10025.www1.hp.com/ewfrf/wc/weResults' -Method POST -Body ($fields -join '&')
$result.RawContent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment