0
I use Java 6. I was doing the integration with IBPT and I used this code:
URL url = new URL("http://iws.ibpt.org.br/api/deolhonoimposto/Produtos?");
InputStream input = url.openStream();
It worked right, only the web service changed and now the url uses https:
URL url = new URL("https://apidoni.ibpt.org.br/api/v1/produtos?");
InputStream input = url.openStream();
And started giving this error "java.net.Socketexception: Connection reset".
And how would I pick up the value from within the connection? con.getInputStream()?
– Fabberg
That’s right, I edited the answer with an example
– Marquezani
Vixi, continues the same error: 13:44:48,238 ERROR [STDERR] java.net.Socketexception: Connection reset
– Fabberg
I think the certificate is missing.
– Fabberg
managed to resolve this issue as?
– Marlucio Pires