I wanted to get the response from the server with the following code
(This is the part where it connects)
InputStream is = new URL(url + "?p=" + pnb).openStream();
while (is.available() > 0)
out[i++] = (char) is.read();
Why does it crash with java.io.IOException: Server returned HTTP response code: 403 for URL: http://172.18.19.16:32000/php/test.php?p=662
when it works when i type that very line into a browser?