https « https « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » https » https 

1. Fetching webpages through https    stackoverflow.com

does anyone know of a Java library to fetch webpages through https?

2. How do I communicate with HTTPS? (Basic Stuff)    stackoverflow.com

I'm not too familiar with networking in JAVA but what i'm basically trying to do is create a couple of threads that will "talk" to each other using HTTPS for security ...

3. How to make a Java server HTTPS-ready?    stackoverflow.com

I have a server written (self written - no Tomcat or Jetty) in Java and it works nicely, but now I want it to work with HTTPS as well, but I ...

4. Setup a https client in Java    stackoverflow.com

I'm very new to HTTPS/SSL so excuse my lack of knowledge. Right now I'm trying to setup a simple Java client in which it connects to a web server through HTTPS. ...

5. Do the Java platform libraries support https    stackoverflow.com

All I need to to do is to connect via https. Must I use commons client for this?

6. How to read the https page content using java?    stackoverflow.com

How to read the https page content using java??

7. HTTPSConnection figure out what underlying provider is being used    stackoverflow.com

I am opening an HTTPSUrlConnection similar to the code below. I want to be sure that a certain provider is being used (the RSA one I loaded). How can I query ...

8. Java getInputStream SocketTimeoutException instead of NoRouteToHostException    stackoverflow.com

I have an odd issue happening when trying to open multiple Input Streams (in separate threads) on Linux (RHEL). The behaviour works as expected on windows. I am kicking off ...

9. how to access https sites in java    stackoverflow.com

I have to access an https site through my java code. But it returns 401 response. I included my code below.

try {        
 URL ...

10. java https networking issue    stackoverflow.com

I'm trying to implement simplest https communication program. There are a lot of examples in net. But I fail to run them successfully.
Here is one example:

public class ReadHttpsURL1 {
  ...

11. Why doesn't HTMLunit work on this https webpage?    stackoverflow.com

I'm trying to learn more about HTMLunit and doing some tests at the moment. I am trying to get basic information such as page title and text from this site:

12. Create a method to get integers from a https web page and store it in a array    stackoverflow.com

Can someone please help me create a method to get the integers (listed below) from this link and store them in an array using Java? I'm new to Java ...

13. HTTPS Get/ Post/Put/delete method in java    stackoverflow.com

Please anyone help me ,how to get HTTPs get/put/delete/post response in java.. Thanks in advance

14. How to get source of html page from a https adress in java    stackoverflow.com

I am trying to implement a download manager in java for rapidshare, I am using the rapidshare API.
The problem is that for example if you go to the following

15. Requesting HTTPS and submitting forms in Java    stackoverflow.com

I got the following scenario: On my webserver I have a .do file with HTML code like this:

<form name="login" action="someAction" method="post">
    //some textboxes
</form>
<input type="submit" value="Submit" />
Now I'm trying to ...

16. List all files of a particular type inside a directory on a remote machine in JAVA    stackoverflow.com

I am trying to find a list of all zip files in a directory which is found by a path like:

https://abdc.defg.com/ijk/lmn/opq
If it was in a local filesystem, then the java.io.File's list() ...

17. Process external files over HTTPS inside XSLT2    stackoverflow.com

I use the unparsed-text function to analyse external files in XSLT. This works well for HTTP-Urls. But when trying to load via HTTPS it fails. First I tried to put the ...

18. using https by jsw-client    coderanch.com

An interesting combination is using https by the java-client that has been started using jws/jnlp. This way a safe communication mechanism that goes through most firewalls is possible between client and its server. But https requires a public certificate, which must be trusted in order to go on with the communication. For this purpose, the java world knows the concept of ...

19. https help needed    coderanch.com

hi all, for the first time i am asked to write an application involving security. My requirement is to read a https url. please let me know the setups to be made on the server(esp reg the different security certificates to issued) and client side before i execute the sample code found in one of the discussions. i knew nothing about ...

20. Is HTTPS connectionless or connection-oriented?    coderanch.com

HTTPS is a seperate distinct protocal from HTTP. It has the features of HTTP 1.1 but extends it to allow a connection-oriented state and allow for 40 or 128 bit encryption. You can confirm the connection by turning on the security warnings in your browser. It will then notify you when a HHTPS connection is established and when it is closed. ...

21. HTTPS    coderanch.com

22. Problem displaying images in HTTPS    coderanch.com

23. https probelm    coderanch.com

I'm not sure what the problem is. The error means that JSSE could not track the server certificate back to a Certificate Authority (CA) it knows and trusts. Normally, the trusted CA are read from the cacerts file in jre/lib/security/. The list of certificates in this file is much smaller than that in most browsers; in practical terms, this means that ...

24. HTTPS over Apache Commons HttpConnection.    coderanch.com

Hi, I have an EJB that connects to a web server over HTTPS and reads some data. It connects to the server using a url similar to the following... https://my.host.name/path/to/some.cgi?queryString Using standard java.net.URL or java.net.URLConnection, everything works fine. Except now I'mm supposed to implement a socket-level timeout to keep it from waiting too long for a connection. So, I used the ...

26. Authenticating to a site throught sockets (no https)    coderanch.com

Hi, I want to connect to a web site made with JSP's as to retrieve some news, however I need to login first (no https, it's a simple post to a jsp). I coded a proxy so I can monitor what is exchanged exactly between my browser and the server as to incorporate this information in the sockets to connect from ...

27. HTTPS or Socket ?    coderanch.com

28. how to read https: page    coderanch.com

First, you'll need the JSSE (Java Secure Sockets Extension) JAR/library available from Sun. This will allow it to use SSL to process HTTPS requests. I believe, though I haven't tried it (I worked directly with sockets when writing an HTTPS-capable proxy), that you don't need to do more. However, you may need to register a protocol handler in your code. The ...

29. How does https really work?    coderanch.com

Hi everyone, I have a question on a particular way to use https that, at first look, seems incorrect. I noticed that some sites ( Paypal.com, americanExpress.com ) do not use the same pattern that everybody else does. That pattern is as follows: As soon as I am redirected on the page of the site that contains the login form, the ...

30. regarding https connectivity    coderanch.com

31. XML-RPC over HTTPS.    coderanch.com

32. https    coderanch.com

33. HTTPS    coderanch.com

34. HTML from HTTPS page    coderanch.com

Thanks! I did go over trying to connect to regular URL. I used URL google = new URL("http://www.google.com/"); URLConnection gl = google.openConnection(); And it did not work. I was giving me an error at "google.openConnection()" So, then I used my local web site at work and it worked fine. So the problem is probably due to the openConnection() method. Do I ...

35. Query to an https server - Code sample?    coderanch.com

36. Communication with https    coderanch.com

An authenticator is not generally needed for HTTPS connections. It may be required if the server uses authentication, though. If one is required but not provided you should get an error message to that effect. Whether or not a proxy is needed depends on your network setup. It, too, is not generally required by HTTP or HTTPS, irrespective of whether or ...

37. how is HTTPS handled    coderanch.com

38. Talking to HTTPS Server    coderanch.com

I have a standalone java application which is configured to speak to a http server. A https version is available for the server on a different port, to which I need to speak to. I configured the end-point but need to set up other parameters in System properties it seems. I use IBM JVM as I develop using RAD7.0. Can someone ...

39. How do get a https's page    coderanch.com

40. streaming PDF over HTTPS to IE    coderanch.com

Hi Jesper, Actually I'm streaming a PDF file from the server to the client machine.I set a couple of headers as: response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); so that its not cached in the browser.But setting the HTTP headers doesn't work for PDF file streaming. Is there a way where we can make the browser to be non-cacheable. Thanks Rakesh.

41. Https problem when accessing through java programs    coderanch.com

Hi I am facing a problem with Https. I have successfully configured verisign certificate and I am able to access through browser like https://localhost:8443/hello/mypattern But when we try to access through java program its throwing following exception. javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certifica te found at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at ...

42. How to pass params in a HTTPS call from plain java classes?    coderanch.com

I need to make https request to a remote system.I have ONLY j2sdk1.4 environment in my machine and i don't have any application servers. I know that using java.net package i can make HTTPS call. My question is 1. The remote system excepts me to pass HTTPS-GET parameter. How i can pass parameter after i made URL connection? Thanks in advance. ...

43. javahelp not running in https    coderanch.com

45. https    coderanch.com

46. HTTPS    coderanch.com

47. HTTPS    coderanch.com

48. using https on credit cart page only    coderanch.com

50. A https question    coderanch.com

51. Resourcebundle with HTTPS ?    coderanch.com

I have an exception when i deploy my *.jar in my server, i'm using HTTPS. If i use HTTP all work fine, how can i resolve this ? and i use 1.4.2_03. Thanks for helping. sun.plugin.cache.DownloadException at sun.plugin.cache.CachedFileLoader.load(Unknown Source) at sun.plugin.cache.FileCache.get(Unknown Source) at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source) at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source) at sun.applet.AppletClassLoader.getBytes(Unknown Source) at ...

52. Using https    coderanch.com

I need to develop a secure web -application that can be accessed by only using https. I have included this in my web.xml My Name /CustomerPinChange/* GET CONFIDENTIAL BASIC But it does not work. Do I have to make any changes or include anything else?

53. Using https in java application    coderanch.com

54. HTTPS functionality    coderanch.com

55. Https Help    coderanch.com

56. How To Get HTTPS?    coderanch.com

Dear All, I have created a self signed digital certificate (.cer ) using JCE without any keystore or management . now I import it to the browser and copy it also to the server. I wanna have a mutual or two way ssl authentication. but It is not working no HTTPS. Forgive me for being so new in this field, I ...

57. https can't send referrer information    coderanch.com

We are using Tomcat 5.5 and apache. We migrated from http to https. We are giving link on a page which will redirect first to a message.jsp page and then to the required website. After migrating to https, it is not redirecting to message.jsp page instead directly going to index.jsp saying that there is no refferer information send in header. How ...

58. Migrating to Https(SSLSession & HttpsSession)    coderanch.com

I am unable to establish the session. Please find below the error log ******************************************************* url=https://xxx:xxx The protocol is ..........https The host is ..........xxx The port is ..........xxx The urlSuffix is ........../servlet/WebRequestController The dataURL is ..........https://xxx:xxx/servlet/WebRequestController inside processRequest urlCurrentPage = https://xxx:xxx Connecion in connectServlet is .................sun.net.www.protocol.https.DelegateHttpsURLConnection: https://xxx:xxx/servlet/WebRequestController Inside sendRequest Key is server Value is Sun-ONE-Web-Server/6.1 Key is date Value is Fri, 21 ...

59. Java application and HTTPS    coderanch.com

hey all, i have been racking my brain and researching for a few days now about this matter, the thing is i want to be able to get information off the internet that has the https protocol, i have created a login class and i have hardcoded some login details in it to test it, however, now it has got to ...

60. HTTPS packet Capturing    coderanch.com

62. HTTPS and Java    coderanch.com

So I've been trying to post to this url. Every diffrent way I try it I get the same errors: Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1623) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:198) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:192) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1074) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:128) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:529) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:465) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120) at ...

63. get a file from https    forums.oracle.com

Code: try { String fullURL = "https://ontropolit.com/files/root.txt" URL url = new URL(fullURL); // Read all the text returned by the server BufferedReader in = new BufferedReader(new InputStreamReader(url .openStream())); String str; while ((str = in.readLine()) != null) { // str is one line of text; readLine() strips the newline // character(s) System.out.println(str); } in.close(); } catch (MalformedURLException e) { e.printStackTrace(); } catch ...

64. Need help with HTTPS Client/Server    forums.oracle.com

URL.openConnection works fine as a client. You don't have to do anything other than specify the protocol as https. I don't know what you are looking for in terms of server. Are you trying to write your own server? Which part do you not know? The HTTP part or the S part?

65. https java.net.UnknownHostException    forums.oracle.com

66. Problem with https    forums.oracle.com

I ve written a java code which tries to connect with a https url.it is working fine in websphere.But when i try it out in weblogic i am getting the following exception. javax.net.ssl.SSLKeyException: [Security:090549]The certificate chain received from myserver.com - xxx.46.96.236 contained a V3 CA certificate which did not indicate it really is a CA. at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException(Unknown Source) at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown Source) ...

67. How to configure https in java?    forums.oracle.com

Dude, I just know that If we need https page in our java web application we have to configure on server which we are using . I am gonna use Jboss as my application server.Right now I am using Http protocol to log in my site.Despite security reasons my clients push me to make it as https. As of my Knowlege ...

69. HTTPS client    forums.oracle.com

70. Open Web page and submit/post a HTTPS web page    forums.oracle.com

This is what I thinking of doing...any help is appreciated. From my java stand alone client, launch a HTTPS (SSL) web page in memory Put the login credential and post/submit the page. Get the return response whether login was successful or not. Then show the user in java stand alone client about its status. Thanks in advance.

71. Java and HTTPS    forums.oracle.com

72. How to use HTTPS to retrieve a set of files from a distant server?    forums.oracle.com

Hi ! i am interested in some samples or links showing how is it possible to use HTTPS in a java code in a standalone application ( could be swing based or whatever) that allows an HTTPS connection to a distant server ( specefic file repository) so that downloading some data files could be possible.i am also interested to know what ...

73. Https    forums.oracle.com

74. HTTPS    forums.oracle.com

75. problem with https    forums.oracle.com

Hi, In my develoment server , i m using http and on production server https is being used. On development server when i try to access link , it opnes a pop up .here i am using http.But on production server https is being used and the problem is happening with https.So, cud u tell me that wt changes to be ...

76. How to disable the verbose mode in HTTPS ?    forums.oracle.com

77. ADSL statistics over HTTPS programmatically. Help!    forums.oracle.com

I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500. Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on ...

78. Difference between SFTP and HTTPS. Which one is Best in Speed performance.    forums.oracle.com

There is not an easy answer to this. First of all, the time to transfer depends largely on the encryption cipher used. There are some SFTP ciphers that are much slower than others. To know for sure you really have to perform a comparison. SFTP may have a slight performance advantage over HTTPS for transferring more than 1 file. The reason ...

79. Load class via https    forums.oracle.com

80. HTTPS Certification problem    forums.oracle.com

81. Link is not clickable in generated rtf file (https)    forums.oracle.com

I am using lowagie API for rtf letter generation. I am using the same from the last two years...I ahve made several Links having http://.... in reference..and working fine I mean they are clickable....But Know i am trying to make https://,,,,,, link and it is not clickable in the letter. Please let me know any suggestions so that it can be ...

82. Java Https    forums.oracle.com

to YAT_Archivist ,I want to ask you some question about regression ,but I can't find a way to communicate with you.here is my email address :qu.guanghai@gmail.com,if you can see this replay would you please send me a email and then I can ask you some question.thanks You are trying to hijack somebody else thread. If you need help from YAT_Archivist, you ...

83. HTTPS client configuration    forums.oracle.com

There is more then one issue in your code, including invalid understanding of the Secure HTTP protocol syntax requirements. Keys are keys. Just as in the RW, a key unlocks something. In the CW, a key unlock things. Keys are used to encrypt or decrypt messages, certificates, etc. Certificates are information about a resource and contain various information - including what ...

84. Https implementation in Solaris system    forums.oracle.com

85. Use of HTTPS    forums.oracle.com

Hi, Recently we had a requirement to invoke a WebService over HTTPS which was earlier written in HTTP. Client was written in Axis2 API. While googling around the solution, I found that if standard certificate like Verisign is used then no client side change is required except changing the URL from HTTP to HTTPS. But if custom certificate is used then ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.