2017-08-29 49 views

回答

0

您需要執行p_auth參數的相關性,該參數在CSRF protectionLiferay應用程序服務器中正在使用。

所以,你需要:

  1. 執行GET請求,您/web/guest/home路徑
  2. 提取p_auth令牌值(通常人們使用Regular Expression Extractor本)
  3. 替代硬編碼記錄的值與變量步驟2

請參閱How to Load Test CSRF-Protected Web Sites瞭解更多信息。

+0

我已經做了,我已經檢查,我得到p_auth參數正確,但不知何故,它仍然無法正常工作。我得到200個響應代碼,而我應該得到302個。任何其他建議? – czojo26

+0

我已經從工作臺開始了服務器代理HTTP,並且在POST查詢之間有一些區別。 POST代理HTTP:POST https:// partner-test.smartcity.comarch.com/web/guest/home?p_auth=tCZVLhpu&p_p_id=b2pquickregistrationportlet_WAR_b2pquickregistrationportlet&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1,POST data:action = step2&postRedirectUrl =&email = alalalalon%40wp.pl&permissionTermsAndConditions = true&_permissionTermsAndConditions = on這裏是來自Chrome擴展的POST:POST https://partner-test.smartcity.comarch.com/web/guest/home – czojo26