Stats

374 Contributors: 8
2017-08-03
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

HttpURLConnection

Download android eBook

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).

Related Examples