No video

cURL - The only HTTP client you'll ever need | Practical Bash & Terminal #9

  Рет қаралды 39,128

kubucation

kubucation

Күн бұрын

Пікірлер: 43
@kubucation
@kubucation 4 жыл бұрын
0:00 Intro: curl as an HTTP client 0:40 HTTP GET Requests (with and without -X) 2:03 HTTP POST with inline body 3:08 Set custom Headers with -H 4:20 Read body from file (on POST and other requests with bodies) 6:37 curl verbose mode 7:48 Print nothing but the HTTP status code with -w and -o 9:20 Basic auth with the -u option 10:28 Set the basic auth header manually 11:32 Inspect headers with -I 12:10 Follow redirects 14:20 Accept invalid HTTPS certificates Note: At 4:05 I’m happy about the fact that we have a non-zero exit code. By default curl will not fail if the HTTP status is >299 as Long as the request was successful. To make curl on non-200 status codes you need to provide the -fail option.
@Dragon-Slay3r
@Dragon-Slay3r Жыл бұрын
Wow that's nice
@427_shreedharshekhar9
@427_shreedharshekhar9 2 жыл бұрын
Hey Man....found your channel today....this so wonderful, I wish you hadn't stopped making videos
@manueljordan317
@manueljordan317 3 жыл бұрын
simplicity is important for this kind of tutorials, thanks for this video!
@Zghanem000
@Zghanem000 2 жыл бұрын
U know these are the only options that i’ve been used in curl command Great job buddy, thanks again
@juanwagner
@juanwagner 2 жыл бұрын
Crisp and clear explanation. I Loved the entire playlist. The way you were progressively adding new concepts one upon the other was amazing. Thank you so much for this series of videos! Also, if you are looking for an idea for your next videos. You can teach how to rock the vim + terminal like you do, I saw magic while you were explaining.
@peledc
@peledc 3 жыл бұрын
It is absulutly pure pleasure to learn with your videos! Keep it up
@vinayrising
@vinayrising 4 жыл бұрын
This is pure gold!!
@kubucation
@kubucation 4 жыл бұрын
Thanks!
@zparihar
@zparihar 3 жыл бұрын
I learned a lot here! You clarified a whole new world for me!
@codebitcookie8053
@codebitcookie8053 4 жыл бұрын
This is very under rated, you are amazing!
@farrukhijaz
@farrukhijaz 4 жыл бұрын
An awesome video as always. Thanks for the effort. Keep them coming!
@brucelamb6060
@brucelamb6060 2 жыл бұрын
Great video! Thank you for demonstrating. Would you be able to make a full dummies tutorial just on cURL (maybe PHP, javascript, or additional tools if necessary)? Particularly submitting post request and managing the cookies associated with them? I'm struggling submitting forms (even some login forms on some sites, like my propstream acct). It would be awesome to learn from you.
@zinternetguy9678
@zinternetguy9678 2 жыл бұрын
i never understand http verbs this videos sums it all really glad !
@sikanderkhan4127
@sikanderkhan4127 2 жыл бұрын
Great video Man, Can you make a video on a setup like yours for vim, terminal, etc
@algeriennesaffaires7017
@algeriennesaffaires7017 3 жыл бұрын
Thank you i have an idea now about curl
@SB-qm5wg
@SB-qm5wg 3 жыл бұрын
Thank you. I had to add the -o /dev/null before the url. I kept getting options -o not known
@PCgamevideo1
@PCgamevideo1 3 жыл бұрын
Love this video!!!
@NavyaTeja7
@NavyaTeja7 4 жыл бұрын
cool stuff from super cool you! ;)
@iarah2939
@iarah2939 2 жыл бұрын
Really useful, thank you!
@ModernDays_Faith
@ModernDays_Faith 2 жыл бұрын
you are a superman. I like the Vim editor you are using. Do you install it with Yum?
@C22_
@C22_ 3 жыл бұрын
How did you open vim during the middle of a command and have the stdin appear inside vim? Or is this just editing?
@kubucation
@kubucation 3 жыл бұрын
No editing involved. Make sure EDITOR= points to vim, then press Ctrl-X Ctrl-E to edit the line in vim. The behavior is slightly different between zsh and bash. After :wq zsh will have the command line filled, but not executed. On bash doing :wq will also execute the command directly.
@themarcvelazquez
@themarcvelazquez Жыл бұрын
@@kubucation I can't get this to work. What terminal are u using? iterm2?
@particle7492
@particle7492 3 жыл бұрын
Great content liked and subbed
@ManojKumar-op8ht
@ManojKumar-op8ht 4 жыл бұрын
First of all its a very useful video. Could you also show how to use curl to download file from any website?
@kubucation
@kubucation 4 жыл бұрын
Thanks. To download a file you either need to redirect the output into a file or specify an output file with -o. So you either do "curl -o foo.jpg somehost.com/foo.jpg" or you do "curl somehost.com/foo.jpg > foo.jpg". Both will download into a local file foo.jpg.
@RenM908
@RenM908 3 жыл бұрын
How can I save the output from the POST request? So for example I had to make a POST request with credentials and I get back a token. I want to store that token as I need it to make other API requests? Is there a way to store it in a variable?
@soufianta8374
@soufianta8374 3 жыл бұрын
Hi. So instead of using high level languages with a bunch of libraries we can use simple and archaic shell scripts or Linux tools? Ok. Can I assume that Linux shell is underrated and is Linux shell the way to go to learn to code for a sys admin? Thanks
@kubucation
@kubucation 3 жыл бұрын
Shell vs high-level language isn't the topic of this video. "The only" in the title refers to the omni-present cURL vs. other CLI http tools. Knowing cURL well (or at least it's basics) is an incredibly useful skill for anyone that works with http (and other) APIs. Whether you develop them, interact with them, debug them, etc. I'm not advocating for writing your entire web app client with bash. What I'm saying is that being able to quickly fire off an http request from the terminal is a very valuable skill that can a lot of time.
@michaelcarnevale5620
@michaelcarnevale5620 2 жыл бұрын
Linux is mostly underrated by people who only use Windows. Linux and Mac offer a similar Unix-based terminal command line interface.
@djstreet
@djstreet 3 жыл бұрын
How do you jump into vim to edit the terminal like that?
@zihuatanejo7741
@zihuatanejo7741 3 жыл бұрын
same question
@zihuatanejo7741
@zihuatanejo7741 3 жыл бұрын
I googled it:use the edit-and-execute-command,which means press ctrl-x first ,then press ctrl-e
@djstreet
@djstreet 3 жыл бұрын
@@zihuatanejo7741 Thanks for updating me!
@crivion
@crivion 2 жыл бұрын
@@zihuatanejo7741 saved the day
@kickbuttowsk2i
@kickbuttowsk2i 2 жыл бұрын
@kubucation no more new videos? :(
@ca7986
@ca7986 3 жыл бұрын
❤️
@amodhgurung7265
@amodhgurung7265 2 жыл бұрын
nice
@dradic9452
@dradic9452 7 ай бұрын
How did you get into vim like that?
@hantusangap
@hantusangap 2 жыл бұрын
man this really help me.bettet than books rich dad poor dad by robert kyosaki
@soahibasif659
@soahibasif659 5 ай бұрын
#Learn y doing
using curl better - with curl creator Daniel Stenberg
55:46
freeCodeCamp Talks
Рет қаралды 62 М.
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
UNO!
00:18
БРУНО
Рет қаралды 5 МЛН
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 36 МЛН
5 Awesome Linux Terminal Tools You Must Know
23:05
NeuralNine
Рет қаралды 283 М.
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Null Byte
Рет қаралды 760 М.
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 52 М.
How does HTTPS work? What's a CA? What's a self-signed Certificate?
11:02
BASH scripting will change your life
14:18
NetworkChuck
Рет қаралды 1 МЛН
The Best Way To Send HTTP Requests
9:20
Amichai Mantinband
Рет қаралды 47 М.
The Secret HttpClient Feature You Need To Use in .NET
10:41
Nick Chapsas
Рет қаралды 71 М.
The RIGHT Way To Use HttpClient In .NET
11:46
Milan Jovanović
Рет қаралды 56 М.
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН