HTTPUrlConnection not working in windows machine and working in mac
<p>I have the following code to call the foursquare API:</p>

<pre><code>String ll   = String.valueOf(latitude) + "," + String.valueOf(longitude);
URL url     = new URL(API_URL + "/venues/search?ll=" + ll + "&amp;categoryId=4bf58dd8d48988d1c4941735&amp;v=20111111&amp;client_id="+CLIENT_ID+"&amp;client_secret="+CLIENT_SECRET);

Log.d(TAG, "Opening URL " + url.toString());

HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();

urlConnection.setRequestMethod("GET");
urlConnection.setDoInput(true);
urlConnection.setDoOutput(true);

urlConnection.connect();

String response     = streamToString(urlConnection.getInputStream());
JSONObject jsonObj  = (JSONObject) new JSONTokener(response).nextValue();
</code></pre>

<p>the very same code, no different. I port the entire project into my friends windows machine and when it calls this function it causes a <code>FileNotFoundException</code>, I assume that it is because on the <code>getInputStream()</code>, but I am not really sure why. Any idea? What is wrong on my code above?</p>
