#8#~#True#~##~#HTTP#~#178.62.152.181#~#443#~##~##~#(cdnbetcity.com|betcity-rus.com|bk-betcity.com|bkbetcity.com|betcityrus.com)
--[[ <HCExtension>@name ReqBody@author mai@version 0.2@description Example@min_HC_version 1.0.0.310@rule mmm\.ru/form/@event BeforeRequestHeaderSend/header@event BeforeRequestBodySend/body</HCExtension> ]] function header() if hc.method == 'POST' then local s1= re.find(hc.request_header, [[[^\r]*\r\n]], 0) local s2= re.replace(hc.request_header, [[[^\r]*\r\n]], '') hc.request_header = s1 hc_static['req_header']= s2 endend function body() if not hc_static['req_body'] then hc_static['req_body']= '' end hc_static['req_body']= hc_static['req_body']..hc.request_body hc.request_body= '' if hc.last_part then -- Здесь выполняются необходимые действия над телом запроса -- Затем корректируется заголовок запроса, например, заменяется -- длина тела запроса hc.request_body= hc_static['req_header']..hc_static['req_body'] hc_static['req_header']= nil hc_static['req_body']= nil endend