Questions tagged [httpsurlconnection]
329 questions
0
votes
0 answers
Parallelize HttpsURLConnection in Java
I am working on an application which executes a lot of HTTP-Post Request on a specific URL. The data gets included into the request via a JSON File. Performing a single POST request takes about 200ms until I get the response code back. In order to…

TribuneX
- 41
- 1
- 6
0
votes
0 answers
Android SSL handshake succeeds on Genymotion virtual device fails on physical device
My Android app uses TLS to talk to a remote server. For some reason the TLS handshake succeeds when I run my app in Genymotion virtual machine but fails when I run it in a physical phone device.
Looking at the traffic with Wireshark I see the…

Farrukh Najmi
- 5,055
- 3
- 35
- 54
0
votes
1 answer
Why is the download speed different between HttpURLConnection and HttpsURLConnection?
I am using HttpURLConnection or HttpsURLConnection for downloading content. My question is why is the download speed different betweenHttpURLConnection and HttpsURLConnection?
Here is a snippet :
if (downloadurl.startsWith("https://")) {
…

梁峻騰
- 1
- 3
0
votes
1 answer
Cookies not set with HttpUrlConnection
I'm trying ton connect to a site, according to this page : http://www.mkyong.com/java/how-to-automate-login-a-website-java-example/
But it seems, that the cookies are not set.
Cannot find the problem...
My aim is to authenticate to this sit in order…

Stéphane GROSSMANN
- 369
- 2
- 5
- 14
0
votes
2 answers
Why am i getting a 505 error code from the server?
I looked up the 505 response code and saw that it was "The Web server (running the Web site) does not support, or refuses to support, the HTTP protocol version specified by the client"
The web site I am trying to access on the web server is…

committedandroider
- 8,711
- 14
- 71
- 126
0
votes
2 answers
Android HttpsURLConnection - simple POST request with parameters
I've been trying to get a simple android client server app working, and I've had nothing but trouble. I'm hoping someone can look at this code and see what I'm doing wrong, maybe I'm doing things in the wrong order, or forgetting something? Just…

Adam
- 1,486
- 3
- 20
- 35
0
votes
1 answer
Programmatically log in to secure server and maintain session
I worked through this example provided online: http://www.mkyong.com/java/how-to-automate-login-a-website-java-example/
and successfully programmatically logged into my gmail.
this tutorial's method was to send a get request of the sign-in page,…

Bethany
- 63
- 3
- 11
0
votes
1 answer
Android HttpsUrlConnection with POST data not work on Gingerbread
I've written code to download some data from external server. The server is using self-signed certificate, need to have session cookie set and some POST data. Currently I have the following code:
private byte[] getResponse(URL url, String postData)…

v3l0c1r4pt0r
- 134
- 8
0
votes
0 answers
DefaultHttpClient, Certificates, Https: Access diened
I have to connect to a secured https url and I followed these steps:
Create the HttpClient :
client = new DefaultHttpClient();
HostnameVerifier hostnameVerifier =…

user880386
- 2,737
- 7
- 33
- 41
0
votes
2 answers
Android HttpURLConnection- easiest way to trust all hosts?
I'm trying to hit an https site through an Android client:
URL url = new URL(myurl);
Log.d("Connection", myurl);
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
…

Adam
- 1,486
- 3
- 20
- 35
0
votes
1 answer
HTTPSURLConnection failed on Java 7 update 51
My Java application runs through Java web start and I'm downloading a file from a web server using browser's session ID. It works fine on previous to Java 7 update 51 but failed on Java 7 update 51. Here is the code. There is no issue on HTTP URL.…

Joe
- 365
- 2
- 9
- 24
0
votes
1 answer
Does HttpsURLConnection support IPv6?
I cannot connect to a IPv6 server through HttpsURLConnection, getInputStream() returns null when I sent a request.
I didn't find any useful information: Android developer guide said HttpURLConnection can transparent support IPv6, but didn't mention…

Jing-Wei Wu
- 138
- 1
- 9
0
votes
0 answers
Http Status 400 on android but 200 on desktop
I am trying to login to twitter using this code below:
//private final String USER_AGENT = "Mozilla/5.0";
private final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116…

rahulserver
- 10,411
- 24
- 90
- 164
0
votes
2 answers
httpsurlconnection posts string wrongly in java application
In my java application I used a Httpsurlconnection to post some string data to the server. When I test this code on android, it works perfectly. However, in a java application it does not work. Client java application is as follows:
public static…

user2972185
- 231
- 3
- 12
0
votes
1 answer
Android HttpsUrlConnection with multiple client certificates + connection pooling?
In my application, I verify a the Android user's identity by giving each user a different client-side SSL certificate. I'd like to use HttpsUrlConnection to connect to the server since that's Google's recommended way.
The user can switch accounts…

Zsombor Erdődy-Nagy
- 16,864
- 16
- 76
- 101