Making authenticated requests using HTTP Headers

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€86.54
List Price:  €121.16
You save:  €34.62
£75.38
List Price:  £105.53
You save:  £30.15
CA$140.74
List Price:  CA$197.05
You save:  CA$56.30
A$155.14
List Price:  A$217.20
You save:  A$62.06
S$130.13
List Price:  S$182.19
You save:  S$52.06
HK$777.43
List Price:  HK$1,088.43
You save:  HK$311
CHF 80.39
List Price:  CHF 112.55
You save:  CHF 32.16
NOK kr1,019.77
List Price:  NOK kr1,427.72
You save:  NOK kr407.95
DKK kr646.34
List Price:  DKK kr904.90
You save:  DKK kr258.56
NZ$175.82
List Price:  NZ$246.15
You save:  NZ$70.33
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,181.85
List Price:  ৳17,055.07
You save:  ৳4,873.22
₹8,881.46
List Price:  ₹12,434.40
You save:  ₹3,552.94
RM422.95
List Price:  RM592.15
You save:  RM169.20
₦146,177.38
List Price:  ₦204,654.18
You save:  ₦58,476.80
₨28,328.44
List Price:  ₨39,660.96
You save:  ₨11,332.51
฿3,279.37
List Price:  ฿4,591.25
You save:  ฿1,311.88
₺4,182.44
List Price:  ₺5,855.59
You save:  ₺1,673.14
B$547.70
List Price:  B$766.80
You save:  B$219.10
R1,749.19
List Price:  R2,448.94
You save:  R699.74
Лв169.18
List Price:  Лв236.86
You save:  Лв67.68
₩143,436.39
List Price:  ₩200,816.69
You save:  ₩57,380.29
₪333.28
List Price:  ₪466.61
You save:  ₪133.32
₱5,825.26
List Price:  ₱8,155.60
You save:  ₱2,330.33
¥15,193.43
List Price:  ¥21,271.41
You save:  ¥6,077.98
MX$1,862.13
List Price:  MX$2,607.06
You save:  MX$744.92
QR365.83
List Price:  QR512.18
You save:  QR146.34
P1,339.02
List Price:  P1,874.68
You save:  P535.66
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,772.25
List Price:  E£6,681.34
You save:  E£1,909.09
ብር14,684.20
List Price:  ብር20,558.46
You save:  ብር5,874.26
Kz91,188.68
List Price:  Kz127,667.80
You save:  Kz36,479.12
CLP$95,806.41
List Price:  CLP$134,132.81
You save:  CLP$38,326.40
CN¥713.97
List Price:  CN¥999.59
You save:  CN¥285.62
RD$6,291.94
List Price:  RD$8,808.97
You save:  RD$2,517.02
DA13,060.39
List Price:  DA18,285.07
You save:  DA5,224.68
FJ$228.24
List Price:  FJ$319.54
You save:  FJ$91.30
Q766.42
List Price:  Q1,073.03
You save:  Q306.60
GY$20,933.63
List Price:  GY$29,307.93
You save:  GY$8,374.29
ISK kr12,255.77
List Price:  ISK kr17,158.57
You save:  ISK kr4,902.80
DH916.57
List Price:  DH1,283.23
You save:  DH366.66
L1,693.44
List Price:  L2,370.88
You save:  L677.44
ден5,333.69
List Price:  ден7,467.38
You save:  ден2,133.69
MOP$801.49
List Price:  MOP$1,122.13
You save:  MOP$320.63
N$1,732.53
List Price:  N$2,425.62
You save:  N$693.08
C$3,682.09
List Price:  C$5,155.07
You save:  C$1,472.98
रु14,186.72
List Price:  रु19,861.98
You save:  रु5,675.25
S/343.75
List Price:  S/481.27
You save:  S/137.51
K420.32
List Price:  K588.47
You save:  K168.14
SAR374.99
List Price:  SAR525
You save:  SAR150.01
ZK2,273.79
List Price:  ZK3,183.40
You save:  ZK909.61
L440.49
List Price:  L616.71
You save:  L176.21
Kč2,105.20
List Price:  Kč2,947.37
You save:  Kč842.16
Ft34,044
List Price:  Ft47,662.96
You save:  Ft13,618.96
SEK kr955.54
List Price:  SEK kr1,337.80
You save:  SEK kr382.25
ARS$134,830.09
List Price:  ARS$188,767.52
You save:  ARS$53,937.43
Bs693.87
List Price:  Bs971.44
You save:  Bs277.57
COP$393,453.43
List Price:  COP$550,850.55
You save:  COP$157,397.11
₡50,351.11
List Price:  ₡70,493.58
You save:  ₡20,142.46
L2,627.92
List Price:  L3,679.20
You save:  L1,051.27
₲705,100.49
List Price:  ₲987,168.89
You save:  ₲282,068.40
$U4,017.89
List Price:  $U5,625.21
You save:  $U1,607.32
zł368.94
List Price:  zł516.53
You save:  zł147.59
Already have an account? Log In

Transcript

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.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.