filmov
tv
Using curl with Multiline JSON Data
Показать описание
Send human readable JSON objects to curl without temp files or shell hacks.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
THE TOOLS I USE / GEAR
---------------------------------------------------
FOLLOW ME ELSEWHERE
---------------------------------------------------
TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:19 -- I'm using a local echo server if you want to follow along
0:37 -- Creating a demo script
0:56 -- A quick primer on the curl basics
1:53 -- Using single quotes has issues with variables
2:46 -- Using double quotes requires a lot of escaping
3:16 -- A slightly more complex example is hard to read on 1 line
4:38 -- You can pass a file to curl's data flag with an at symbol
5:45 -- Saving a multiline heredoc into a variable has a few caveats
7:51 -- Creating and passing a file to curl then deleting it
11:15 -- The solution, using a hyphen as a file with stdin
12:28 -- Optionally retaining new lines with JSON
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
THE TOOLS I USE / GEAR
---------------------------------------------------
FOLLOW ME ELSEWHERE
---------------------------------------------------
TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:19 -- I'm using a local echo server if you want to follow along
0:37 -- Creating a demo script
0:56 -- A quick primer on the curl basics
1:53 -- Using single quotes has issues with variables
2:46 -- Using double quotes requires a lot of escaping
3:16 -- A slightly more complex example is hard to read on 1 line
4:38 -- You can pass a file to curl's data flag with an at symbol
5:45 -- Saving a multiline heredoc into a variable has a few caveats
7:51 -- Creating and passing a file to curl then deleting it
11:15 -- The solution, using a hyphen as a file with stdin
12:28 -- Optionally retaining new lines with JSON
Комментарии