🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9634

Re: Telemeter Java program?

#9634
From: keanu
Date: Sat, 13 Apr 2002 23:47
48 lines
2191 bytes
<knip>
heb ook wat zitten proberen


import java.io.*;
import java.net.*;

import javax.net.ssl.*;
import javax.security.cert.*;

public class test {
    public static void main(String[] args) throws IOException {
        httpsURL();
    }
    public static void httpsURL() throws IOException {
        String login = "moo";
        String password = "moo";
        String loginPage = 
"https://services.telenet.be/be.telenet.afe.isps.CTelemeter?
LOGIN&isps_servlet_LoginId=" + login + "&isps_servlet_CurrPassword=" + 
password ;
        
        
        System.setProperty("java.protocol.handler.pkgs", 
"com.sun.net.ssl.internal.www.protocol");
        
        URL u = new URL(loginPage);
        URLConnection con = u.openConnection();
        con.setAllowUserInteraction(true);
        
        BufferedReader in = new BufferedReader(new InputStreamReader
(u.openStream()));
        String inputline;
        while ((inputline = in.readLine()) != null)
            System.out.println(inputline);
        in.close();
    
    }
}




maar ik krijg deze error

javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate

suckz ...
Technical Details
Message-ID: <Xns91F0129F5C748keanunoemailcom@195.130.132.65>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!203.109.225.2!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
References: <3CB8963B.EBC4FB70@pandora.be> <3CB8ABB5.7ED5D3AE@pandora.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,b049623567100ad
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-04-13 16:47:20 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!203.109.225.2!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
Newsgroups: be.comp.programming
Subject: Re: Telemeter Java program?
From: keanu <keanu@noemail.com>
References: <3CB8963B.EBC4FB70@pandora.be> <3CB8ABB5.7ED5D3AE@pandora.be>
Organization: Your Company
Message-ID: <Xns91F0129F5C748keanunoemailcom@195.130.132.65>
User-Agent: Xnews/L5
Lines: 51
Date: Sat, 13 Apr 2002 23:47:13 GMT
NNTP-Posting-Host: 213.118.55.177
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1018741633 213.118.55.177 (Sun, 14 Apr 2002 01:47:13 MET DST)
NNTP-Posting-Date: Sun, 14 Apr 2002 01:47:13 MET DST