add some (not working) backoffice requests

This commit is contained in:
2026-08-27 14:36:08 +02:00
parent 986fdb3f43
commit f362be0a84
4 changed files with 736 additions and 4 deletions
@@ -5,7 +5,7 @@ info:
http:
method: POST
url: "{{elixFormsRootUrl}}/CISIInformationUnit/ExecuteTransaction.jws"
url: "{{elixFormsRootUrl}}/CISIInformationUnit/ExecuteTransaction.jws?IUXSID=TX_I4453_UNIPR_{{unixTimestamp}}_R{{randomRID}}"
headers:
- name: Host
value: console-unipr.elixforms.it
@@ -13,9 +13,9 @@ http:
value: https://console-unipr.elixforms.it/backoffice/
params:
- name: IUXSID
value: TX_I4453_UNIPR_1787737266508_R-1756946974
value: TX_I4453_UNIPR_{{unixTimestamp}}_R{{randomRID}}
type: query
disabled: true
description: Values are computed in pre-script!
body:
type: multipart-form
data:
@@ -28,13 +28,36 @@ http:
- name: INSERT_BTN00000
type: text
value: Accedi
disabled: true
auth: inherit
runtime:
scripts:
- type: after-response
code: |-
function generateTenDigitNumber() {
// Minimum 10-digit number: 1000000000
// Maximum 10-digit number: 9999999999
const min = 1000000000; // 10^9
const max = 9999999999; // 10^10 - 1
// Generate random integer in range [min, max]
const randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
return String(randomNum); // Return as string to preserve leading digits
}
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
var unixTimestamp = Date.now();
//console.log(unixTimestamp);
bru.setVar("unixTimestamp", unixTimestamp);
var r = generateTenDigitNumber(); //getRandomInt(-999999999, 9999999999);
//console.log(r);
bru.setVar("randomRID", r);
/*
const headerSetCookie = res.getHeader('set-cookie');
console.log(headerSetCookie);