Solution 1 :

First of all, you have to know that axios GET requests returns back some data, and not source codes.

Since it can’t render HTML, postman shows the source code instead.

So you can only make GET requests to a URL which returns some data

Problem :

i want to send get request using axios and get the url html source
code as response iam usin reactjs and using axios package to send the
get request, but it is not working as expected. bottom of line i want
to send get request and get response as in the picture below.

here is the code iam trying to make it work:


click to see the image


Comment posted by Brian Thompson

What is the problem? Explain

Comment posted by Mostafa Sobh

then how could i send get request and get the html as response ? i solved it by using library called cheerio with axios