Re: Issue in fragmentation of JSON Data
Dan Fandrich via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jan 21, 2023 at 01:01:39AM +0400, Hamid Kaashif via curl-users wrote:
> 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]"]}'
Are you trying to use curl's globbing support in this data? That's not going to
work since globbing is only supported in URLs and upload file names. If instead
of POSTing the data the server lets you GET it, then you can do something like
this:
curl 'https://server/scan?scan_id=29121227092[920-999]'
Dan
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette: https://curl.se/mail/etiquette.html