Skip to content

Instantly share code, notes, and snippets.

@benwillkommen
Created March 2, 2016 17:20
Show Gist options
  • Save benwillkommen/0beb6c97a20725be26e1 to your computer and use it in GitHub Desktop.
Save benwillkommen/0beb6c97a20725be26e1 to your computer and use it in GitHub Desktop.
$basketGetResponse = Invoke-WebRequest -uri ("http://$server/home/sessionid") -SessionVariable session
$basketGetResponse.Content
while($true){
$basketGetResponse = Invoke-WebRequest -uri ("http://$server/home/sessionid") -WebSession $session
$basketGetResponse.Content
Start-Sleep 2
}
public string SessionId()
{
return Session.SessionID;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment