stat /tmp
File: /tmp
Size: 12288 Blocks: 24 IO Block: 4096 directory
Device: 811h/2065d Inode: 1048578 Links: 36
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2023-02-08 15:12:06.119429160 +0100
Modify: 2023-02-08 15:01:59.570984133 +0100
Change: 2023-02-08 15:01:59.570984133 +0100
Birth: -
curl --trace-ascii /dev/stdout http://localhost:8085/basic --data-urlencode 'filter=[{"columnName":"test","condition":"=","value":"Успешно"}]'
== Info:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0== Info: Trying 127.0.0.1:8085...
== Info: Connected to localhost (127.0.0.1) port 8085 (#0)
=> Send header, 154 bytes (0x9a)
0000: POST /basic HTTP/1.1
0016: Host: localhost:8085
002c: User-Agent: curl/7.74.0
0045: Accept: */*
0052: Content-Length: 122
0067: Content-Type: application/x-www-form-urlencoded
0098:
=> Send data, 122 bytes (0x7a)
0000: filter=%5B%7B%22columnName%22%3A%22test%22%2C%22condition%22%3A%
0040: 22%3D%22%2C%22value%22%3A%22%3F%3F%3F%3F%3F%3F%3F%22%7D%5D
== Info: upload completely sent off: 122 out of 122 bytes
-H 'Accept: application/json'
curl --trace-ascii /dev/stdout http://localhost:8085/basic --data-urlencode 'filter=[{"columnName":"test","condition":"=","value":"Успешно"}]' -H 'Accept: application/json'
curl --trace-ascii /dev/stdout http://localhost:8085/basic --data-urlencode 'filter=[{"columnName":"test","condition":"=","value":"Успешно"}]' -H 'Content-Type: application/json'
== Info: Uses proxy env variable no_proxy == '192.168.99.100'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0== Info: Trying 127.0.0.1:8085...
== Info: Connected to localhost (127.0.0.1) port 8085 (#0)
=> Send header, 137 bytes (0x89)
0000: POST /basic HTTP/1.1
0016: Host: localhost:8085
002c: User-Agent: curl/7.74.0
0045: Accept: */*
0052: Content-Type: application/json
0072: Content-Length: 122
0087:
=> Send data, 122 bytes (0x7a)
0000: filter=%5B%7B%22columnName%22%3A%22test%22%2C%22condition%22%3A%
0040: 22%3D%22%2C%22value%22%3A%22%3F%3F%3F%3F%3F%3F%3F%22%7D%5D
== Info: upload completely sent off: 122 out of 122 bytes
== Info: Mark bundle as not supporting multiuse
request = new HttpEntity<String>(data.toString(), headers);
responseEntity = restTemplate.postForEntity(url, request, String.class,
headers);
curl --help |grep urle
--data-urlencode <data> HTTP POST data url encoded
https://learn.microsoft.com/ru-ru/dotnet/api/micro...