does anyone know of a Java library to fetch webpages through https?
|
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 ... |
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 ... |
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. ... |
All I need to to do is to connect via https. Must I use commons client for this?
|
How to read the https page content using java??
|
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 ... |
|
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 ... |
I have to access an https site through my java code. But it returns 401 response. I included my code below.
try {
URL ...
|
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 {
... |
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:
|
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 ... |
Please anyone help me ,how to get HTTPs get/put/delete/post response in java..
Thanks in advance
|
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 |
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 ... |
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() ... |
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 ... |
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 ... |
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 ... |
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. ... |
|
|
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 ... |
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 ... |
|
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 ... |
|
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 ... |
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 ... |
|
|
|
|
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 ... |
|
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 ... |
|
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 ... |
|
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. |
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 ... |
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. ... |
|
|
|
|
|
|
|
|
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 ... |
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? |
|
|
|
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 ... |
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 ... |
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 ... |
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 ... |
|
|
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 ... |
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 ... |
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? |
|
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) ... |
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 ... |
|
|
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. |
|
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 |
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 ... |
|
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 ... |
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 ... |
|
|
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.comto 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 ... |
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 ... |
|
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 ... |