James Roi Dela Cruz
James Roi Dela Cruz

Reputation: 23

How to get web content using bash

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

Answers (1)

Marcello B.
Marcello B.

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

Related Questions