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.

Webservice call returns error 500

I have started a small project in Java. I have to create a client which will send xml to a …

java webservice-client httpurlconnection
How to check if InputStream is Gzipped?

Is there any way to check if InputStream has been gzipped? Here's the code: public static InputStream decompressStream(InputStream input) { …

java http gzip inputstream httpurlconnection
Pass cookies from HttpURLConnection (java.net.CookieManager) to WebView (android.webkit.CookieManager)

I've seen answers about how this should work with the old DefaultHttpClient but there's not a good example for HttpURLConnection …

android cookies android-webview single-sign-on httpurlconnection
java.io.IOException: unexpected end of stream on Connection in android

I have web service URL, it working fine. It gives the JSON data. When I am using HttpURLConnection and InputStream, …

android rest inputstream httpurlconnection
Should HttpURLConnection with CookieManager automatically handle session cookies?

I have a Java application (JDK 1.7.0_13) and am using java.net.HttpURLConnection to connect to some servlet based services that …

java cookies httpurlconnection cookiemanager
Cannot write output after reading input

I'm writing a program that connects to a servlet thanks to a HttpURLConnection but I stuck while checking the url …

java httpurlconnection
Setting custom header using HttpURLConnection

I am simply making a GET request to a Rest API using HttpURLConnection. I need to add some custom headers …

java rest http-headers httpurlconnection urlconnection
How do you send data in a Request body using HttpURLConnection?

I am using HttpURLConnection to make a POST request to a local service deployed locally and created using JAVA Spark. …

java web-services httpurlconnection microservices spark-java
FileNotFoundException for HttpURLConnection in Ice Cream Sandwich

I have an Android app that works fine with Android 2.x and 3.x, but it fails when run on Android 4.…

android httpurlconnection filenotfoundexception
Upload large file in Android without outofmemory error

My upload code as below: String end = "\r\n"; String twoHyphens = "--"; String boundary = "*****"; try { URL url = new URL(ActionUrl); …

android upload out-of-memory httpurlconnection