Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Feature request: use system properties by default for proxy settings

Đang mở
#813 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

Start in org.htmlunit.HttpWebConnection#createHttpClientBuilder() and inspect how the HTTP client builder is configured, including any existing options for system properties. The issue suggests enabling useSystemProperties() by default or exposing a configuration option; determine the intended behavior and verify it against the proxy and SSL-related system properties listed in the issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I have a use case where I need to control whether or not to use a proxy using system properties, without having access to the code.

If org.htmlunit.HttpWebConnection#createHttpClientBuilder() set builder.useSystemProperties(); ("Use system properties when creating and configuring default implementations") this works.

This sets more than just proxy config according to https://issues.apache.org/jira/browse/HTTPCLIENT-1128 it sets:

ssl.TrustManagerFactory.algorithm
javax.net.ssl.trustStoreType
javax.net.ssl.trustStore
javax.net.ssl.trustStoreProvider
javax.net.ssl.trustStorePassword
java.home
ssl.KeyManagerFactory.algorithm
javax.net.ssl.keyStoreType
javax.net.ssl.keyStore
javax.net.ssl.keyStoreProvider
javax.net.ssl.keyStorePassword
http.proxyHost
http.proxyPort
http.nonProxyHosts
http.keepAlive
http.maxConnections

Personally I would like this on by default in HtmlUnit. But having a config option to set this would be useful too.

Ngôn ngữ chính
JavaScript
Star
952
Fork
183
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của HtmlUnit/htmlunit

Tất cả issue của HtmlUnit/htmlunit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.