Skip to content
Advertisement

ASCII Text Browser Vs. cURL

I hit this url : http://artii.herokuapp.com/make?text=abc+art&font=smisome1

I see this

enter image description here

Then when I curl exact same URL

curl http://artii.herokuapp.com/make?text=abc+art&font=smisome1

I got this

enter image description here

🤦🏻‍♂️

Does anyone know why this is happening ?

Is there a specific flag in the curl I should pass to make it return the same result as broswer ?

How do I get my Terminal to display the same ASCII text format as the browser ?

Advertisement

Answer

The ampersand in the URL is breaking up the command.

If you escape the ampersand you should achieved the desired return.

E.G. curl http://artii.herokuapp.com/make?text=abc+art&font=smisome1

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement