10.06.2024, 14:51
This is something which I already tried. In this case I get the following log:
I log "body" as well and get the following result:
I don't understand why the serial is still in the thrid position. I changed the code and expect the serial to be on first position. Why does this not happen?
For a common understandig - although it's not shown hier in the code, I use the correct serial and IP.
Code:
* arg: 1
* string: {"type":"warning","message":"No values found!","code":1002}
* arg: 2
* number: 200
* arg: 3
* table:
["content-length"]
* string: 59
["accept-ranges"]
* string: none
["content-type"]
* string: application/json
["connection"]
* string: close
* arg: 4
* string: HTTP/1.1 200 OK
I log "body" as well and get the following result:
Code:
* string: {"limit_value":"10","limit_type":"1","serial":"000000000000"}
I don't understand why the serial is still in the thrid position. I changed the code and expect the serial to be on first position. Why does this not happen?
Code:
body = json.encode({
serial = '000000000000',
limit_type = '1',
limit_value = '10',
})
For a common understandig - although it's not shown hier in the code, I use the correct serial and IP.