Reputation: 23
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
Upvotes: 2
Views: 233
Reputation: 4440
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
Upvotes: 3