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.

How to set the (OAuth token) Authorization Header on an Android OKHTTPClient request

I'm able to set the Auth Header on normal HTTPURLConnection requests like this: URL url = new URL(source); HttpURLConnection connection = …

java android oauth httpurlconnection
How do I persist cookies when using HTTPUrlConnection?

I've begun using the recommended HTTPUrlConnection and moved away from the DefaultHTTPClient. One of the things that I haven't been …

java android cookies httpurlconnection
HttpURLConnection to Send image , audio and video files with parameter may (String or Json String) Android

I'm sharing the solution to send an image , audio or a video file with parameters using HttpURLConnection. Parameters may be (…

android httpurlconnection
Can I override the Host header where using java's HttpUrlConnection class?

I'm using the following code to open a http connection in java: URL url = new URL("http://stackoverflow.com"); HttpURLConnection …

java http networking httpurlconnection urlconnection
How to show progress bar status by percentage while uploading json data?

I am uploading string and photo.and its working fine. Now I want to show progress bar while uploading data …

android json progress-bar httpurlconnection progressdialog
Java HttpURLConnection doesn't connect when I call connect()

I'm trying to write a program to do automated testing on my webapp. To accomplish this, I open up a …

java url connection http-status-code-302 httpurlconnection
Android HttpUrlConnection EOFException

I would like to know if there are known issues on Android with HttpUrlConnection and POST requests. We are experiencing …

android httpurlconnection
How to get cookies in HttpUrlConnection by using CookieStore?

In my Application class, I do the following: public class MyApplication extends Application { private static HttpURLConnection conn = null; public static …

android cookies httpurlconnection cookiestore
URLConnection does not get the charset

I'm using URL.openConnection() to download something from a server. The server says Content-Type: text/plain; charset=utf-8 But connection.…

java http content-type httpurlconnection urlconnection
Android: Too many open files error

I have the following operation which runs every 3 seconds. Basically it downloads a file from a server and save it …

android httpurlconnection android-file