Questions tagged [jetty-httpclient]
19 questions
5
votes
1 answer
Jar dependencies to use jetty httpclient
I want to use the jetty httpclient(in netbeans) but have the least number of jar dependencies. I know I can import all jars from the jetty lib folder to my project but I would like to know what the minimum number of dependencies are and how you did…

Alfred
- 60,935
- 33
- 147
- 186
4
votes
1 answer
Jetty HttpClient 9 (9.0.0.M5) SSLContextFactory's TrustAll flag not working?
I'm using Jetty HttpClient 9 to do some simple web crawling and I can't seem to make it work with HTTPS. The following simple code that makes a synchronous GET request ...
SslContextFactory sslContextFactory = new SslContextFactory(true);
HttpClient…

user2048871
- 41
- 2
2
votes
2 answers
Error on getting response from HttpClient using Jetty 9
I want to get content from an external server using Jetty and HttpClient class. Now I want to copy the obtained response as HttpServletResponse and return to client (Browser). I've tried something but cannot succeed. I think I am not getting through…

progrrammer
- 4,475
- 2
- 30
- 38
2
votes
0 answers
Accessing the peer certificate in Jetty HttpClient
I am using Jetty HttpClient to make HTTPS requests. After establishing the SSL connection and before sending the data I would like to verify that I am talking to the intended server. Basically, if I want to send request to www.foo.com, then I want…

Margus Freudenthal
- 21
- 1
1
vote
1 answer
How to isolate Jetty HttpClient for multiple users?
I am using Eclipse Jetty HttpClient to send POST requests to a server, for load testing.
TL;DR: Is there a way to use a single HttpClient instance with multiple user credential sets to a single destination URL?
For this purpose, I need to log in to…

Jamie
- 1,888
- 1
- 18
- 21
1
vote
1 answer
Instrument Jetty HttpClient for Http2
I m using Jetty's http2client to make synchronous calls to my server, my sample program is a follows,
Client part
Security.addProvider(new OpenSSLProvider());
SslContextFactory sslContextFactory = new…

Zyber
- 428
- 4
- 21
1
vote
1 answer
Jetty HttpClient crashes on POST when using streams with available() method returning relatively small values
I use Jetty HttpClient to send POST request with body around few MB. I want Jetty to start streaming the request as soon as possible, so I use setRequestContentSource method.
The problem is that when I use any input stream with available() method…

Piotr Sarnacki
- 752
- 6
- 9
1
vote
0 answers
How to parse JSON and urlencoded responses with Jetty HttpClient?
Please recommend the optimal approach for parsing urlencoded or JSON-encoded responses when using Jetty HttpClient.
For example, I have created the following utility class for sending ADM-messages and use BufferingResponseListener there, with…

Alexander Farber
- 21,519
- 75
- 241
- 416
1
vote
1 answer
Binding Jetty HttpClient to Network Interface Card
I will be using Jetty HttpClient on machines with two Network Interface Cards, I want the ability to force (bind) Jetty HttpClient to one of the NICs, would this be possible with Jetty HttpClient?

Arya
- 8,473
- 27
- 105
- 175
1
vote
0 answers
SSL Renegotiation failures with Jetty HttpClient
I have a proxy servlet based on Jetty's ProxyServlet that is seeing intermittent 502 responses due to SSL renegotiation failures in the proxy's HttpClient when attempting to proxy the request to the remote server. Wireshark traces show that the SSL…

chuckd
- 158
- 10
0
votes
1 answer
Jetty httpclient add proxy socks4
When i'm trying to send request via jetty httpClient with new Socks4Proxy(socksHost, socksPort); received: java.util.concurrent.ExecutionException: java.io.IOException: SOCKS4 tunnel failed with code 91
HttpClient httpClient = new…
0
votes
0 answers
Http 307 redirect fails for Put Post calls
I am noticing 307 redirect working only for Get calls in jetty httpclient.
For Post/Put redirection are not happening when body present with request.
We are using jetty-client:11.0.11
Update 1
I did poc code to try out the put post calls with…

SKR
- 103
- 1
- 10
0
votes
1 answer
Jetty 10.0.8 client cannot connect to a TLS1.3 website which is reachable with common browsers
I can reach this website with firefox, edge, chrome. But not with the following (I obfuscated the actual company address just in case that there may be a security problem with it).
SslContextFactory.Client sslContextFactory = new…

user3726374
- 583
- 1
- 4
- 24
0
votes
0 answers
URI Template support in Jetty HttpClient v11.x
I have just started using the Jetty HttpClient v11 and it is great. However, inherent support for path params or route params seem to be missing, although it has a nice way to add query params.
Path param…

Rakesh
- 58
- 1
- 6
0
votes
0 answers
Jetty HttpClient proxy authentication configuration (NTLM)
We built a Java client application connecting to an API behind a proxy that demands NTLM authentication. The application uses a Jetty HttpClient.
Unfortunately the authentication fails with a 407
Response headers HttpResponse[HTTP/1.1 407 Proxy…

thomas
- 115
- 1
- 7