View State value not being parsed through

in the below code i save the viewstate from the Get request as a variable, then reuse it in the post request. but checking the request in Fiddler, the value being posted for View State is blank. ive added a session print and i get a value printed to the console, but not show why its not being submitted in the post request. Any ideas please:

.exec(http(“Get ViewState”)
.get("/CommPay/CommPayContacts/CommPayContactDialogX.aspx?ApplicationSessionID=")
.headers(headers_0)
.check(css("#__VIEWSTATE",“value”).saveAs(“ViewState”)))

.exec(http(“request_12”)
.post("/CommPay/CommPayContacts/CommPayContactDialogX.aspx/ValidateEmail")
.headers(headers_2)
.body(RawFileBody(“CreateContact_0012_request.txt”))
.resources(http(“request_13”)
.post("/CommPay/CommPayContacts/CommPayContactDialogX.aspx/CheckExceedLimitContactCreation")
.headers(headers_2)
.body(RawFileBody(“CreateContact_0013_request.txt”)),
http(“request_14”)
.post("/CommPay/CommPayContacts/CommPayContactDialogX.aspx?ApplicationSessionID=")
.headers(headers_0)

.formParam("__VIEWSTATE", “${ViewState}”)

Did you get trace logs? if the extracted value is in session variables, then it should be replaced in POST request mentioned below.

You can try with attached sample code
.

AdvancedSimulationStep011.scala (3.13 KB)

Thanks G Madhana Mohana Reddy

I found that the content of view state was too big to appear in fiddlers webform, however it was visible in raw view - so im happy now :wink: