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}”)