title: how to make http connection with android ndk?
body: <p>Can anybody help me to create http connection using android ndk?I want to define the methods for http connection in c/c++ code and want to call it from java code using jni.</p>
  
  <p>the below code is from sdk.</p>
  
  <pre><code>httpCon = (HttpURLConnection) httpUrl.openConnection();
  httpCon.setRequestMethod("GET");
  
  if (httpCon.getResponseCode() == HttpURLConnection.HTTP_OK) 
              {
                  is = httpCon.getInputStream();
                  int ch;
                  sb = new StringBuffer();
                  while ((ch = is.read()) != -1) {
                      sb.append((char) ch);
                  }
  }
  </code></pre>
  
  <p>same thing i want to do with ndk.</p>