Top "Httpurlconnection" questions

HttpURLConnection instance is used to make a single request but the underlying network connection to the HTTP server may be transparently shared by other instances.

Java HttpURLConnection.getInputStream but get 401 IOException

I am writing a REST client for CouchDB in Java. The following code should be quite standard: this.httpCnt.connect(); …

java httpresponse httpurlconnection http-status-code-401
Passing Parameters with HttpURLConnection

With the old Apache stuff deprecated in API 22, I am finally getting around to updating my network stuff. Using openConnection() …

java android parameters httpurlconnection basicnamevaluepair
How to stop HttpURLConnection connect on Android

I use AsyncTask to connect an URLPath as below code. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(…

android android-asynctask httpurlconnection
Two way sync for cookies between HttpURLConnection (java.net.CookieManager) and WebView (android.webkit.CookieManager)

Unfortunately, there's a multitude of cookie managers for Android. The cookies for HttpURLConnection are maintained by java.net.CookieManager and …

android http cookies android-webview httpurlconnection
HttpURLConnection fail on Android

(Solved - see comment below) I have a class that implements a multipart file upload. The code works on every …

android http httpurlconnection
deprecated readLine() What to change?

I'm a Java beginner, trying to get this to work in Eclipse. However, the readLine is struck through and a …

java httpurlconnection datainputstream
HttpURLConnection: how to read payload of 400 response

I use the following code to send a JSON request to my web service, and, for a bad request I …

java json httpurlconnection ioexception payload
How to get 401 response without handling it using try/catch in android

I am using HttpUrlConnection to make network requests from my android application. Everything works fine except one thing, 401. Whenever the …

android httpurlconnection
Getting a reference to Java's default http(s) URLStreamHandler

I have a library that I need to use in one of my projects, which unfortunately registers its own URLStreamHandler …

java httpurlconnection urlconnection httpsurlconnection
How to connect Android with HTTPsURLConnection

I've been trying to figure the code out for quite a while now, however have had no success. Everytime the …

json http exception httpurlconnection