when I go test.htm file I get this
User name: * Required
Password: * Required
Can someone help me please. I send the user name and password via form.fields (see below)
$response = Invoke-WebRequest -Uri 'https://booking.mylab.com/llbooking/' -SessionVariable rb
$form = $response.Forms[0]
$form.Fields.ctl00_MainContent_LoginView1_Login1_UserName='John.Doe'
$form.Fields.ctl00_MainContent_LoginView1_Login1_Password='Test123'
$form.Fields.ctl00_MainContent_LoginView1_Login1_LoginButton='SIGN IN'
$response = Invoke-WebRequest -Uri 'https://booking.mylab.com/llbooking/' -WebSession $rb -Method POST -Body $form.fields
$response.RawContent | out-file test.htm