Move zet notes to blog posts
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
11ddf3d114
commit
2c517f1d39
34 changed files with 67 additions and 14 deletions
19
source/_posts/24.md
Normal file
19
source/_posts/24.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: POSTing data from a JSON file
|
||||
date: 2024-09-14 13:39:01
|
||||
tags: [Linux, curl]
|
||||
related:
|
||||
- Sending POST requests with curl
|
||||
note: true
|
||||
permalink: /notes/24-posting-data-from-a-json-file
|
||||
---
|
||||
|
||||
When sending JSON data in a POST request, instead of writing it inline with the
|
||||
`--data` or `--json` option, a filename can be entered - prefixed with an `@`
|
||||
symbol.
|
||||
|
||||
For example, to POST the data from a data.json file:
|
||||
|
||||
```shell
|
||||
curl --insecure --json @data.json https://mysite.com/webhook
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue