We also had problems getting the jmeter login page. In the end, we made it work. It is important to note:
- You need to create two HTTP request samples for the login page, the first of which uses the GET method. So the viewstate can be captured by regular expression extractors, and then the second, which uses the POST method, which performs the login.
- Use firebug or any other capture tool to capture the message of your login page and remember to add all the controls that publish the values. If you forget one parameter, your page will report an error. We also need an empty ___VIEWSTATE parameter. See screenshot for our shipment request.
- For some pages, we also had to add the __VIEWSTATEENCRYPTED parameter with an empty value

source share