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.net.SocketTimeoutException: failed to connect

I hava a working xmlparser But unfortunately i get an error when i'm on mobile data. The problem doesn't occur …

java android httpurlconnection socket-timeout-exception
Java, HttpURLConnection and setting the content length

I'm setting the length of the content in my HttpURLConnection, for a PUT. urlConnection.setRequestProperty("Content-Length", "" + responseJSONArray.toString(2).getBytes("UTF8").…

java android httpurlconnection content-length
HttpURLConnection timeout defaults

I seem to be having trouble with some tcp requests getting "stuck" at times, like it is waiting for some …

java httpurlconnection
HttpURLConnection downloaded file name

Is it possible to get the name of a file downloaded with HttpURLConnection? URL url = new URL("http://somesite/getFile?…

java http inputstream httpurlconnection
Java HttpURLConnection: Content Length computation

I'm currently developing a library for the bitbucket issues RESTful API. I made good progress and now I'm going to …

java http rest httpurlconnection urlconnection
Java URLConnection - When do I need to use the connect() method?

I have a problem to understand the meaning of the connect() method in the URLConnection class. In the following code, …

java connect httpurlconnection urlconnection
java.io.IOException: unexpected end of stream

getting issue when writing large video file using httpurlconnection. java.io.IOException: unexpected end of stream on Connection{192.1.4.55, proxy=DIRECT@ …

java android httpurlconnection multipartform-data
Is it possible to download files like PDF with HttpClient?

I found some examples here on how to download a file but most of them seem to be using HttpURLConnection. …

java pdf httpurlconnection apache-commons-httpclient
HttpURLConnection worked fine in Android 2.x but NOT in 4.1: No authentication challenges found

I have some typical codes which used HttpURLConnection to get a file with an URL. They worked fine in android 1.…

android authentication httpurlconnection
IOException: "Received authentication challenge is null" (Apache Harmony/Android)

I am trying to send a GET via Android's HttpURLConnection (imported from org.apache.harmony.luni.internal.net.www.protocol.…

java android httpurlconnection