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 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 - sending HTTP parameters via POST method easily

I am successfully using this code to send HTTP requests with some parameters via GET method void sendRequest(String request) { // …

java http post httpurlconnection
How to add parameters to HttpURLConnection using POST using NameValuePair

I am trying to do POST with HttpURLConnection(I need to use it this way, can't use HttpPost) and I'd …

android post http-post httpurlconnection basicnamevaluepair
POST request send json data java HttpUrlConnection

I have developed a java code that convert the following cURL to java code using URL and HttpUrlConnection. the curl …

java json post curl httpurlconnection
Getting java.net.SocketTimeoutException: Connection timed out in android

I'm relatively new to android development. I'm developing an android application where i'm sending request to web server and parsing …

java android httpurlconnection java-io
How to send PUT, DELETE HTTP request in HttpURLConnection?

I want to know if it is possible to send PUT, DELETE request (practically) through java.net.HttpURLConnection to HTTP-based …

java httpurlconnection put http-delete
Connecting to remote URL which requires authentication using Java

How do I connect to a remote URL in Java which requires authentication. I'm trying to find a way to …

java httpurlconnection
Why am I getting this error Premature end of file?

I am trying to parse an XML response, but I am failing miserably. I thought initially that the xml was …

java xml httpurlconnection
Sending files using POST with HttpURLConnection

Since the Android developers recommend to use the HttpURLConnection class, I was wondering if anyone can provide me with a …

android http post client-server httpurlconnection