is there a good way to see exactly where I'm getting hung up during the process of a login automation using while invoke web request?
--------------------------------------------------------------------------------
I have a small snippet of code, which uses invoke web request, and then logs in with credentials. However it does not seem to be blocking me in. And another spot I get hung up on is after I log in how do I navigate through the website with dynamic links via the same session?
$form = @()
$form = $r.Forms[0]
$form.fields['user_login'] = "yup@gmail.com"
$form.fields['user_pass'] = "nope,"
$r = Invoke-WebRequest -Uri ('http://www.daytradingzones.com/members/' + $form.Action) -WebSession $my_session -Method POST -Body $form.Fields
$ses = Invoke-WebRequest 'http://www.daytradingzones.com/members/' -SessionVariable my_session
Start-sleep -Milliseconds 500
$welcome =(Invoke-WebRequest -Uri 'http://www.daytradingzones.com/members/welcome/').Links
this is not being successful at logging me in..