Wget/curl credentials validation

Experts,

I login to a 3rd party and pull some valuable information with my credentials. I pass my credentials via --post-data in wget.

Now my Account is locked. I want my wget to alert that the Account is locked. How can i achieve this.

My idea is, get the Source page html from the wget and look for the pattern "Account locked" and alert. I know this is not a fine solution. Looking a help from you.

Please advise a command based solution. Thanks in advance

Can you provide some output on how it looks like when this happens. Output and Error message from wget .

Hello Jotne,

You cannot see any difference in the wget response code. Though the Account is locked, the response code will be 200. And with respect to the Error, nothing has been thrown out. Only I can find blank values in my output.

I got to know that my account has been locked out when I opened the site with my credentials.