create a sample curl for getting data

925
1
Jump to solution
01-22-2019 10:06 AM
MRReddy
Occasional Contributor

I have the below url with headers and the fields I need to use

https://aaa.bbbb.co/last\
-H "Authorization: last <token>"    \
-H "App-Version: 5.0.0"    \
-H "Content-Type: application/json"

I'm not sure, how to put this is in javascript and get data

Any suggestions

Thanks

Malla

0 Kudos
1 Solution

Accepted Solutions
KevinTientcheu3
New Contributor II

Hey MR,

You might be looking for how to send an HTTP request using JavaScript. Below is a link that might be useful to get you started. I hope it helps!

Popular ways to make HTTP requests in JS from FreeCodeCamp

View solution in original post

0 Kudos
1 Reply
KevinTientcheu3
New Contributor II

Hey MR,

You might be looking for how to send an HTTP request using JavaScript. Below is a link that might be useful to get you started. I hope it helps!

Popular ways to make HTTP requests in JS from FreeCodeCamp

0 Kudos