Questions tagged [httpsurlconnection]
329 questions
0
votes
0 answers
android httpsurlconnection onclick
I'm beginning my adventure with android and trying make app which will download data from website after logging in. I have written method to connecting with website in this way:
public class ConnectWebsite extends AsyncTask…

Docze
- 11
- 3
0
votes
1 answer
Can not make httpsUrlConnection to a servlet Handshake exception
I have an Application in Tomcat 8.5.8. I have Apache 2.4 webserver in front of Tomcat server. I have configured Apache with ssl TLS1.2 and ciphursuite : SSLCipherSuite "HIGH:!aNULL:!MD5:!3DES:!CAMELLIA:!AES128".
Now when I am trying to make…

Harish Alwala
- 142
- 1
- 1
- 9
0
votes
0 answers
Java: simulate wget --no-check-certificate
I must simulate in java the following wget command:
wget.exe --no-check-certificate --user utente --password pordine - https://x.x.x.x:YYYY/jsonContent
I almost did it, but something is wrong because - i suppose - I cannot set the option…

fresko
- 1,890
- 2
- 24
- 25
0
votes
0 answers
How to call the github API form HttpsURLConnection in java
I need to change my branch named testingProtectedBranch1 as a protected branch with providing the following parameters
on
required_status_check : include_admins= true, strict= true, context= continuous-integration/travis-ci
restrictions:…

Kasun Siyambalapitiya
- 3,956
- 8
- 38
- 58
0
votes
1 answer
How to make HTTPS post request in Java?
I'm trying to make a HTTPS post request.
String url = "https://myhttpsurl.com"
URL myurl = new URL(url);
HttpsURLConnection con = (HttpsURLConnection) myurl.openConnection();
con.setRequestMethod("POST");
String query = "confirmation_number=" +…

Ninja
- 5,082
- 6
- 37
- 59
0
votes
2 answers
HttpsURLConnection show Security Warning Dialog rather than catch Exception
I make an HttpsURLConnection as below:
try
{
URL url = new URL( host );
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
connection.connect();
logger.debug(…

Doan Linh
- 107
- 8
0
votes
0 answers
Android URLConnection, responce is changing from web to android
I am working on an app, where I have to parse the third party website after login in to it. Where https://customer.onlinelic.in/LICEPS/appmanager/Agent/AgentHome is home page after login. From here there are some links in the response page where I…

Sagar
- 484
- 3
- 10
- 24
0
votes
0 answers
How to allow only the trusted CA certificates in android to ensure the default SSL validation
In my application I am using the AndroidHttpClient to send an https request to the server. In order to avoid man-in-the-middle attack, we may need to check whether the SSL certificate is issued by a trusted authority. Is there any way we can achieve…

Shyam
- 871
- 6
- 15
- 30
0
votes
0 answers
Hostname not verified Android
I'm using HttpsUrlconnection for connections to my webapp which is hosted on a shared hosting plan. I'have noticed that everything's working fine unless the sky is cloudy (or , for the rare times that it has happened, unknown reasons), then throws…

bkn
- 21
- 1
- 11
0
votes
0 answers
Bug in HttpsURLConnection debug values
I'm documenting something I can only qualify as a bug in the debug values of javax.net.ssl.HttpsURLConnection instances.
I created a Java EE project in Eclipse, another in Netbeans, and in both cases wrote a simple method which when called will…

Chris Neve
- 2,164
- 2
- 20
- 33
0
votes
1 answer
Timeout has no limit? - HttpsURLConnection
In my Java client app I'm connecting to my server using HttpsURLConnection. This works all fine, except on certain moments it does not timeout at all. I set the timeout parameters of the connection as such (to 5000 ms):
HttpsURLConnection con =…

Zxifer
- 413
- 1
- 4
- 9
0
votes
1 answer
Android Studio Soap Xml Request format not printing
The below Android soap xml request/resposen is printing in Eclipse. But, In Android Studio, Response is print, Request in XML format not printing.
mySample Code:
Android Ksoap Xml request
AndroidHttpTransport httpTransport = new…

harikrishnan
- 1,985
- 4
- 32
- 63
0
votes
2 answers
Capturing Android applicataion traffic using FIddler
So far I managed to capture the traffic of local Java programs & Android browser successfully. However, I failed to capture traffic of my Android application (using HttpsUrlConnection).
While following the steps in this guide to configure the WiFi…

Neria Nachum
- 1,519
- 1
- 20
- 37
0
votes
1 answer
HttpsUrlConnection Android vs Native Java
I wrote some code that tries to communicate with a website "as a browser" (in terms of cookies & headers). I currently have four requests (GET, POST, POST, GET).
The code is pretty straightforward: opening a connection, adding headers and cookies,…

Neria Nachum
- 1,519
- 1
- 20
- 37
0
votes
2 answers
How to send json object as request parameter in a url using HttpsURLConnection in android
I am having a url as https://www.xyz.in/ws/bt with Request Parameters as token,blockrequest and format.
Sample JSON “blockrequest” String is…

Manish Singh Rana
- 822
- 1
- 13
- 26