Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

login to website using invoke-webrequest

$
0
0

I'm trying to supply credentials when opening a URI with invoke-webrequest, but can't figure out how to set and pass the credentials.  The site is not using Windows authentication. 

The page has a form called "signin" with fields username, password, rememberpassword.  I've seen examples where an array is created with this information; but then I'm not sure how I would pass this information to invoke-webrequest.

Also after the username and password fields are completed I need to click on the "sign in" button; how would I accomplish this after the credentials have been supplied.

I don't know if this question is too broad, but was hoping someone could point me in the right direction; thanks.


Viewing all articles
Browse latest Browse all 21975

Trending Articles