Top "Urlconnection" questions

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

Reading from a URL Connection Java

I'm trying to read html code from a URL Connection. In one case the html file I'm trying to read …

java url html-parsing urlconnection datainputstream
Setting custom HTTP request headers in an URL object doesn't work

I am trying to fetch an image from an IP camera using HTTP. The camera requires HTTP basic authentication, so …

java url http-headers http-authentication urlconnection
Java: What is the purpose of setDoInput in URLConnection

Possible Duplicate: Java HttpURLConnection Would this method be used for example if I want to read the response to a …

java http-post urlconnection
Downloading a portion of a File using HTTP Requests

I am trying to download a portion of a PDF file (just for testing "Range" header). I requested the server …

java urlconnection download downloading-website-files
Java: resume Download in URLConnection

I wrote a program that downloads some files from some servers. Currently program works properly. But I want to add …

java resume urlconnection
Getting a reference to Java's default http(s) URLStreamHandler

I have a library that I need to use in one of my projects, which unfortunately registers its own URLStreamHandler …

java httpurlconnection urlconnection httpsurlconnection
asynchronous HTTP request in java

How to send asynchronous HTTP GET/POST request in java without waiting/reading response ?I don't want to use any …

java http post get urlconnection
How to parse an application/json object into a String

I am programmatically navigating to a site that returns application/json format. I can't seem to read the json returned …

json jackson urlconnection
Android - Default user agent for URLConnection?

I am creating a regular HTTP connection using this code: URLConnection cn = new URL( "http://...." ).openConnection(); cn.connect(); How do …

android http default user-agent urlconnection
URLConnection FTP list files

URL url = new URL("ftp://user:[email protected]/thefolder/"); URLConnection connection = url.openConnection(); ... // List files in folder... Using …

java file ftp urlconnection