Title: API works only partially when using an HTTP proxy · Issue #92 · a-schild/nextcloud-java-api · GitHub
Open Graph Title: API works only partially when using an HTTP proxy · Issue #92 · a-schild/nextcloud-java-api
X Title: API works only partially when using an HTTP proxy · Issue #92 · a-schild/nextcloud-java-api
Description: TL;DR: Please add support for HTTP proxies in all API parts using Apache HttpClient Long version: I tried to use the nextcloud-java-api within a company network which requires me to use an HTTP proxy to access the Nextcloud instance. Thi...
Open Graph Description: TL;DR: Please add support for HTTP proxies in all API parts using Apache HttpClient Long version: I tried to use the nextcloud-java-api within a company network which requires me to use an HTTP pro...
X Description: TL;DR: Please add support for HTTP proxies in all API parts using Apache HttpClient Long version: I tried to use the nextcloud-java-api within a company network which requires me to use an HTTP pro...
Opengraph URL: https://github.com/a-schild/nextcloud-java-api/issues/92
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API works only partially when using an HTTP proxy","articleBody":"TL;DR: Please add support for HTTP proxies in all API parts using Apache HttpClient\n\nLong version:\n\nI tried to use the nextcloud-java-api within a company network which requires me to use an HTTP proxy to access the Nextcloud instance.\n\nThis is my sample code demonstrating that parts of the API work with an HTTP proxy an some do not work (the ones using Apache HttpClient):\n\n\tSystem.setProperty(\"http.proxyHost\", \"proxy\");\n\tSystem.setProperty(\"http.proxyPort\", \"8000\");\n\tSystem.setProperty(\"https.proxyHost\", \"proxy\");\n\tSystem.setProperty(\"https.proxyPort\", \"8000\");\n\n\tNextcloudConnectorconnector = new org.aarboard.nextcloud.api.NextcloudConnector(\"my_cloud_host\", true, 443, user, password);\n\tSystem.out.println(\"connector.getServerVersion() = \" + connector.getServerVersion()); \u003c-- works fine because it does not use Apache HttpClient\n\n\tUser user = connector.getUser(\"my_user_name\"); \u003c-- fails with a timeout because Apache HttpClient doesn't automatically use the HTTP proxy settings of Java\n\nThe problem is that in ConnectorCommon.java the HttpClient is hard coded via\n\n\tHTTPC_CLIENT = HttpAsyncClients.createDefault();\n\nSo this could be either replaced by a function which can be overwritten so that the user himself can set up an HttpClient with the appropriate proxy configuration or the API could read the Java http proxy settings and set the corresponding properties of the HttpClient.","author":{"url":"https://github.com/xylo","@type":"Person","name":"xylo"},"datePublished":"2025-10-21T14:46:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/92/nextcloud-java-api/issues/92"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c426ed63-1059-12a4-2add-e076b55dc11e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAE8:12779A:F2E1B4:13F46D0:698FBE3A |
| html-safe-nonce | f8aa00c3e6c26e039657692e199ab955cd1d47cae58c9fc2c5b4cbf39a86421f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUU4OjEyNzc5QTpGMkUxQjQ6MTNGNDZEMDo2OThGQkUzQSIsInZpc2l0b3JfaWQiOiIyMTI2OTQ1NTgwMDE4MDIzOTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6f43ccf98fbcf0e64d9640a30b5dbe0f5b2493276e0c63f360e0b8bcdbb3924b |
| hovercard-subject-tag | issue:3536906727 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/a-schild/nextcloud-java-api/92/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96355d4507046adcd8bc039c1bc37ac77913e5e6145db1f0b22b0bd564f03b63/a-schild/nextcloud-java-api/issues/92 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96355d4507046adcd8bc039c1bc37ac77913e5e6145db1f0b22b0bd564f03b63/a-schild/nextcloud-java-api/issues/92 |
| og:image:alt | TL;DR: Please add support for HTTP proxies in all API parts using Apache HttpClient Long version: I tried to use the nextcloud-java-api within a company network which requires me to use an HTTP pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xylo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/a-schild/nextcloud-java-api git https://github.com/a-schild/nextcloud-java-api.git |
| octolytics-dimension-user_id | 1441009 |
| octolytics-dimension-user_login | a-schild |
| octolytics-dimension-repository_id | 86676911 |
| octolytics-dimension-repository_nwo | a-schild/nextcloud-java-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 86676911 |
| octolytics-dimension-repository_network_root_nwo | a-schild/nextcloud-java-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 111423ee085528bc9fa8c25b2e698c30347f841e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width