Android HttpUrlConnection does POST instead of GET

view story

http://stackoverflow.com – I've got an Android app that's trying to do a GET request to my server using HttpUrlConnection. When I test the code in a separate testing desktop application, everything works fine. However, when I run it on my android device, my server registers a POST request instead of a GET. Here's the code for my get method: public static String get(String url) throws IOException { HttpURLConnection conn = connFromUrlString(url); conn.setRequestMethod("GET"); conn.setDoInput(true); conn.setDoOutput(true); conn.connect(); String out = IOUtils.toString(conn.getInputStream(), "UTF (HowTos)