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.

Java simple code: java.net.SocketException: Unexpected end of file from server

I wrote some simple code in Java, the method should connect to the website and return the BufferedReader. private BufferedReader …

java sockets httpurlconnection
Parse JSON from HttpURLConnection object

I am doing basic http auth with the HttpURLConnection object in Java. URL urlUse = new URL(url); HttpURLConnection conn = null; …

java html json parsing httpurlconnection
Sending a JSON HTTP POST request from Android

I'm using the code below to send an http POST request which sends an object to a WCF service. This …

java android json wcf httpurlconnection
FileNotFoundException while getting the InputStream object from HttpURLConnection

I am trying to send a post request to a url using HttpURLConnection (for using cUrl in java). The content …

java inputstream httpurlconnection filenotfoundexception
How to send Request payload to REST API in java?

I want to retrieve the JSON data from the following: https://git.eclipse.org/r/#/c/11376/ Request URL: https://git.…

java rest httpurlconnection http-status-code-400
android download pdf from url then open it with a pdf reader

I am trying to write an app to download pdfs from url, store them on sd, then open by adobe …

android pdf download httpurlconnection fileinputstream
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
How to get response body using HttpURLConnection, when code other than 2xx is returned?

I have problem with retrieving Json response in case when server returns error. See details below. How I perform the …

java http httpurlconnection
How to set Content Type on HttpURLConnection?

Do you know how to set Content-Type on HttpURLConnection? Following code is on Blackberry and I want the Android equivalent: …

android httpurlconnection
How to send Https Post request in java

I want to login to application from java code. Here is my code... String httpsURL = "https://www.abcd.com/auth/…

java http-post httpurlconnection