Android HttpURLConnection

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • abstract void disconnect()
  • abstract boolean usingProxy()
  • static boolean getFollowRedirects()
  • static void setFollowRedirects(boolean set)
  • String getHeaderField(int n)
  • String getHeaderFieldKey(int n)
  • String getRequestMethod()
  • String getResponseMessage()
  • int getResponseCode()
  • long getHeaderFieldDate(String name, long Default)
  • boolean getInstanceFollowRedirects()
  • Permission getPermission()
  • InputStream getErrorStream()
  • void setChunkedStreamingMode(int chunklen)
  • void setFixedLengthStreamingMode(int contentLength)
  • void setFixedLengthStreamingMode(long contentLength)
  • void setInstanceFollowRedirects(boolean followRedirects)
  • void setRequestMethod(String method)

Remarks

HttpURLConnection is the standard HTTP client for Android, used to send and receive data over the web. It is a concrete implementation of URLConnection for HTTP (RFC 2616).



Got any Android Question?