Yes Yossi I think I need to do that, Thanks a lot for your suggestions and
support.
Regards Somshekar
On Thu, Sep 5, 2019, 8:48 PM wrote:
> Your class should also be in the classpath. Add
> ";path/ClientCustomSSL.class" to your class path.
> (This is basic Java stuff, unrelated to HC. Maybe you
Your class should also be in the classpath. Add ";path/ClientCustomSSL.class"
to your class path.
(This is basic Java stuff, unrelated to HC. Maybe you should do some Java
tutorial first, or if possible start using an IDE, which simplifies a lot of
these issues.)
-Original Message-
From
Hi Yossi,
tried the same
somshekar@celsys041:~$ java -classpath
/home/somshekar/akshay/java-jvms/httpcomponents-client-4.5.9/lib/httpclient-4.5.9.jar:/home/somshekar/akshay/java-jvms/httpcomponents-client-4.5.9/lib/httpcore-4.4.11.jar:/home/somshekar/akshay/java-jvms/httpcomponents-client-4.5.9/li
You need to specify the full package name of the main class (in your case
org.apache.http.examples.client.ClientCustomSSL).
-Original Message-
From: Somshekar C Kadam
Sent: Thursday, 5 September 2019 16:14
To: HttpClient User Discussion
Subject: Re: apache httpclient
Hi Yossi,
Thanks
Hi Yossi,
Thanks you are right, I did put all jar files and compiled it, now it
compiles successfully able to create class file.
compile command
javac -classpath
/home/somshekar/akshay/java-jvms/httpcomponents-client-4.5.9/lib/httpclient-4.5.9.jar:/home/somshekar/akshay/java-jvms/httpcomponents-c
It seems that you are only putting httpclient-4.5.9.jar in your classpath, but
it has dependencies on other JARs itself. Most importantly, it depends on
HttpCore, part of the same project. You can see the dependencies, and their own
dependencies, recursively, at
https://mvnrepository.com/artifa
Hi Yossi,
Thanks for correcting me, I used example from 4.5.9, let me know if I am
setting proper jar file or need to give any other or missing any step.
source code
=
package org.apache.http.examples.client;
import java.io.File;
import javax.net.ssl.SSLContext;
import org.
The compilation error are the result of you coping code from HC version 5.0 and
using it with JARs for HC 4.5.x. The hint is in the package name (client5).
I suggest you look for examples for the current version (4.5.x).
-Original Message-
From: Somshekar C Kadam
Sent: Thursday, 5 Sept
Hi Bernd,
I am using java 1.8, Ubuntu 16.04, code is given below which I am trying to
compile which uses apache httpclient.
httpclient jar fies downloaded
somshekar@celsys041:~$ ls
/home/somshekar/akshay/java-jvms/httpcomponents-client-4.5.9/lib/
commons-codec-1.11.jar httpclient-4.5.9.jar
ht
Hi Yossi,
will try and get back on this.
Regards
Somshekar C Kadam
9036660538
On Thu, Sep 5, 2019 at 3:24 PM wrote:
> One possible explanation for the 20 second delay is that the curl call
> goes through a proxy (defined by the http_proxy/https_proxy environment
> properties), while Java does
One possible explanation for the 20 second delay is that the curl call goes
through a proxy (defined by the http_proxy/https_proxy environment properties),
while Java does not pick up these properties. If this is indeed the case, you
need to pass some system properties in your java call. See the
Hi Brenda,
First of all thanks for your time and advice.
I am not asking for Arm, I was telling for Intel Ubuntu Linux machine, not
able to get it compiled.
I will send error to you later.
Regards Somshekar
On Thu, Sep 5, 2019, 3:05 PM Bernd Eckenfels wrote:
> Hello,
>
> The URLConnection co
Hello,
The URLConnection code looks fine (line reading is not the most performing way
to do it and buffer size is probably on the small side but that should not be a
deal breaker). Maybe you can add timestamp printing so you can see where the
delay happens. (Especially is it while print_certs w
Hi Bernd,
Missed the sample program used
HttpsClient.java
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.Certificate;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;
public class H
Hi Bernd,
On My Ubuntu Machine I am able to compile Intel based Java programs no
issue.
We have Armv7 target board openjdk installed, able to compile java program
and run on the board no issues,
I run the curl command on the armv7 target board, able to connect to https
link and get the content, s
Hello,
Are you able to compile and run any java programs?
What is the error you are getting, what is the command you are using to compile
it and how does your source directory looks like?
You can compile the sample client on other machines, if this helps your
development velocity.
You can’t r
Hi Bernd,
Thanks for the quick reply.
Excuse me on the replyall part, my bad.
when I use curl same https connection quickly returns within 2 seconds,
ofcourse different cipher is used.
Also I am not able to get sample apache httpclient compiled on Ubuntu Linux
machine, any link or steps which I ca
Hello,
Certainly you can use the Apache HTTPClient to replace URLConnection, you don’t
need to do anything special on ARM other than having Java Runtime installed.
If you have a slow http download changes are high this is caused by slow CPU,
missing random numbers, slow network or server. All t
Hi All,
I am a newbie to Java.
We are going to try Apache httpclient as an alternative for openjdk
httpsurl connection class.
We see that using openjdk 8 and above we s eee that when using httpsurl
conenction we see a delay of 10 to 20 seconds to get content of the url. We
use Armv7, Linux. We wan
The Apache HttpComponents project is pleased to announce 4.4.12 GA
release of HttpComponents Core.
This is a maintenance release that corrects a number of defects
discovered since release 4.4.11.
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
IMPORTANT: Users of HttpCore 4.x GA
20 matches
Mail list logo