Top "Urlconnection" questions

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

How to use java.net.URLConnection to fire and handle HTTP requests?

Use of java.net.URLConnection is asked about pretty often here, and the Oracle tutorial is too concise about it. …

java http httprequest httpurlconnection urlconnection
java.io.IOException: Server returned HTTP response code: 500

I'm facing this problem with Java. I want to get some HTML informations from a URL. This code was working …

java http urlconnection
Upload files from Java client to a HTTP server

I'd like to upload a few files to a HTTP server. Basically what I need is some sort of a …

java file-upload urlconnection
Java: how to use UrlConnection to post request with authorization?

I would like to generate POST request to a server which requires authentication. I tried to use the following method: …

java post authorization urlconnection httpconnection
Convenient way to parse incoming multipart/form-data parameters in a Servlet

Is there any convenient way to read and parse data from incoming request. E.g client initiate post request URLConnection …

java servlets urlconnection
Unable to resolve host "<insert URL here>" No address associated with hostname

I tried following this tutorial: Getting Data from the Web I tried implementing it on Android 3.0, the latest platform for …

android android-asynctask android-3.0-honeycomb urlconnection
Java URLConnection Timeout

I am trying to parse an XML file from an HTTP URL. I want to configure a timeout of 15 seconds …

java timeout connect urlconnection
Can you explain the HttpURLConnection connection process?

I am using HTTPURLConnection to connect to a web service. I know how to use HTTPURLConnection but I want to …

java inputstream httpurlconnection outputstream urlconnection
What exactly does URLConnection.setDoOutput() affect?

There's setDoOutput() in URLConnection. According to documentation I should Set the DoOutput flag to true if you intend to use …

java android urlconnection
Getting "java.net.ProtocolException: Server redirected too many times" Error

I'm making a simple URL request with code like this: URL url = new URL(webpage); URLConnection urlConnection = url.openConnection(); InputStream …

java url servlets redirect urlconnection