Top "Urlconnection" questions

URLConnection is a class that enables Java code to access data available from various urls.

Setting "User-Agent" parameters for URLConnection for querying Google from a Java application

I am trying to get the results back from a Google query, in Java as follows: String urlquery = "https://www.…

java httpurlconnection urlconnection google-search
How does URLConnection.setUseCaches() work in practice?

I have an Applet which is loading images over a http connection using URLConnection. I am setting setUseCaches(true) for …

java applet urlconnection
Proxy With Java URLConnection class

I am very new with Java. I am using following code for the calling REST API, its working fine in …

java proxy urlconnection
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
connection.setRequestProperty and excplicitly writing to the urloutputstream are they same?

URL url = new URL("http://www.example.com/comment"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod("POST"); …

java 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
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
Httpclient deprecated

I'm developing an app using HTTPclient for datatransfer. Since HTTPClient is deprecated, I want to port the network part to …

java php android eclipse urlconnection
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
Java URLConnection error with ntlm authentication, but only on Linux and only Java 7

I am trying to open an http connection to an url protected with the NTLM authentication scheme. This code has …

java authentication ntlm urlconnection