Hello, in this video, I am going to show you how to make authenticated requests by sending authorization headers. So the header is an HTTP header that gets sent because you have, you know, the htt p request, which is what we are making here. And then what we get back, which is this information is the HTTP response. And maybe, on the server side, the client always makes the request the server side always give the response back where it's successful response with some data, like the body, for example, or wherever it's 30, saying something gone wrong, and then we fail. Well, so several ways, send the response. We want to be able to know authenticate this, we could have HTTP header, send some information to the server, which will detect what we've got in the header.
Or maybe it's just to see you know exactly what information we need. And based on that, you'll give it back to us. Obviously, you can tell Care of HTTP headers, you know the way you want to on your server and PHP in Ruby. And Python doesn't really matter. But this video is about how to actually send the HTTP header. It's actually really simple.
So you just put info.io class. And now part of the get request is free on several lines, just so easy to see. Need a comma. And what we want to do is here we want to put headers don't like the way that was well formatted. So we are going to put headers, HTTP headers, dots, so the different types of headers that you can No, put here. Don't put the gopher ization?
No. You can put some salt on, you know, the API token, like so. And that's really all there is to it. Obviously, on our end that won't change the response. Depending on your website, what you do is totally up to you. If you want to see any headers that have come through, not on that particular website is good to network reload website, go to any of the resources go to header.
And there we go. And that is it for you know, making authenticating requests using authorization header. If you have any questions, feel free to pop me a message. I'm also going to link a no video with this tutorial, which explains HTTP headers a bit more to the YouTube video from earlier you know, thinking from the deputy channel that you can check out and yeah, so if you have any questions, feel free to shoot me a message. As usual, I look forward to seeing you in the next tutorial.