-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support HTTP Proxies #38
Comments
That needs support from the config file too, right? |
It will do, yeah. I'd imagine something like this:
|
Wow, you have to love
Then there's the question of which proxy settings win out in the IDE (the ones in the config file, or on the IDE). |
ceylon-common now supports the configuration of a proxy. For the built in |
So does this mean this is resolved? |
Alas, not yet. We still need to configure CMR to use the proxy. |
Well, moving to M6. |
Moving again. |
….openConnection()` and `URLConnection.openConnection(Proxy.NO_PROXY)` don't behave the same
….openConnection()` and `URLConnection.openConnection(Proxy.NO_PROXY)` don't behave the same
…penConnection()` and `URLConnection.openConnection(Proxy.NO_PROXY)` don't behave the same
Ok, this wasn't as straight-forward as I hoped it was due to Java's brain dead implementation of this. You can only set authentication globally for the JVM? Reallly? So a real solution might require the use of Apache's HttpComponents (which we're already including for Maven support, but maybe we'd like that to be as optional as possible) or write our own authentication handling (no idea how hard that would be, "Basic" proxy authentication is easy enough, but what else is there?) Anyway, what I pushed should make non-authenticating proxies work. No tests though. |
I've encountered a proxy which used NTLM authentication, which is a barrel of laughs to deal with in Java. |
And does Java's |
It was a long time ago, thankfully, so I've largely forgotten how I got around it, but I think the gist of the answer is "no, not in any way". NTLM was old hat even then, so I don't seriously propose we worry about it, but I would guess that something like Kerberos would still be current in corporate environments. |
So a temporary hack/work-around would be to install the proxy handler if somebody passed |
Refactor access to URL.openConnection into some interface with two strategies, one JDK-based and one HttpClient-based. Make the JDK-based one the default to avoid the dependency on HttpClient. |
I'm using Finding the proxy discusssion, I added to
But I cannot access http://repo1.maven.org/maven2/. A typical error message is:
However,
Suggestions welcome. |
@josephwinston Maven has its own proxies that I think you'll need to configure, see here for more info: https://maven.apache.org/guides/mini/guide-proxies.html |
My ~/.m2/settings.xml are in place and work for maven. |
Could you try and see what happens when you specifically point Ceylon to that file by adding |
The URL/Dav content stores should support accessing the net via a proxy. We should also support proxy authentication.
The text was updated successfully, but these errors were encountered: