curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Issue in fragmentation of JSON Data

From: Hamid Kaashif via curl-users <curl-users_at_lists.haxx.se>
Date: Sat, 21 Jan 2023 01:01:39 +0400

Hello there,
I have an issue when I try to fragment data in json input.

Here’s the scenario:
The following request works. I got a valid JSON output.

curl 'https://api-prod.grep.events/1/container/5342/thing/user_id/mutual/scan' -H 'Authorization: Bearer geKkBJw8a1zhag38euv4GS75tIOWcT4' -H 'X-Authorization: 5d85018f-7d08-45d9-897c-a0506dcda28c' -H 'Content-Type: application/json' --data '{"scan_id":["29121227092920"]}'


I tried fragmenting scan_id, however, got an error message (fragmented request below)

curl 'https://api-prod.grep.events/1/container/5342/thing/user_id/mutual/scan' -H 'Authorization: Bearer geKkBJw8a1zhag38euv4GS75tIOWcT4' -H 'X-Authorization: 5d85018f-7d08-45d9-897c-a0506dcda28c' -H 'Content-Type: application/json' --data '{"scan_id":["29121227092[920-999]"]}'


Is there a way to resolve it? Thanks!

(For security reasons Modified contents on both request)




---
Sent from  Workspace ONE Boxer


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-01-20