How to get web content using bash

Viewed 77

Hello there I want to get the response of my php file. I already tried wget -q -O - https://juanvpn.co/api/login?username=kuyajaaam&password=example its response is 0 but when I try it in browser its response is 1

1 Answers

You must quote the URL because it contains characters that have special meaning to the shell. If you put your URL in quotes the shell will ignore the special characters in the string and it will work fine.

Thanks to @Janos in the comments above

Related