proxy

419 views
Skip to first unread message

David Portabella

unread,
Feb 9, 2012, 7:50:54 AM2/9/12
to conscri...@googlegroups.com
how do i set-up conscript with a proxy that requieres authentication?

curl is working with this:
export http_proxy=http://my_login:my_password@my_proxy_host:8080/
export https_proxy=http://my_login:my_password@my_proxy_host:8080/

is there some equivalent for conscript?


I get the following:
++++++++++++++++++++++++++++++++++++++++
cs eed3si9n/scalaxb
Getting net.databinder conscript_2.9.1 0.3.4 ...

:: problems summary ::
:::: WARNINGS
Your proxy requires authentication.

Your proxy requires authentication.

module not found: net.databinder#conscript_2.9.1;0.3.4

==== local: tried
...
++++++++++++++++++++++++++++++++++++++++


eugene yokota

unread,
Feb 9, 2012, 8:47:22 AM2/9/12
to conscri...@googlegroups.com
Here are the relevant lines from [dispatch][1]:

val host = sys.getProperty("https.proxyHost",
sys.getProperty("http.proxyHost"))
val port = sys.getProperty("https.proxyPort",
sys.getProperty("http.proxyPort"))
val user = sys.getProperty("https.proxyUser",
sys.getProperty("http.proxyUser"))
val password = sys.getProperty("https.proxyPassword",
sys.getProperty("http.proxyPassword"))
val domain = sys.getProperty("https.auth.ntlm.domain",
sys.getProperty("http.auth.ntlm.domain"))

Not sure if it's gonna work, but it's worth a shot.

[1]: https://github.com/dispatch/dispatch/blob/master/http/src/main/scala/ConfiguredHttpClient.scala#L21

-eugene

David Portabella

unread,
Feb 9, 2012, 9:13:34 AM2/9/12
to conscri...@googlegroups.com
Hi Eugene,

Thanks for the info.

I've tried as follows:

export _JAVA_OPTIONS="-Dhttp.proxyHost=... -Dhttp.proxyPort=... -Dhttp.proxyUser=... -Dhttp.proxyPassword=..."
cs eed3si9n/scalaxb

but I get the same result: Your proxy requires authentication.


I see that conscript is using ning "async-http-client" library.

I see ning has the properties: com.ning.http.client.AsyncHttpClientConfig.proxy.{user, password, protocol}.

I've tried as follows:

export _JAVA_OPTIONS="-Dhttp.proxyHost=... -Dhttp.proxyPort=8080  -Dcom.ning.http.client.AsyncHttpClientConfig.proxy.protocol=http -Dcom.ning.http.client.AsyncHttpClientConfig.proxy.user=... -Dcom.ning.http.client.AsyncHttpClientConfig.proxy.password=..."
cs eed3si9n/scalaxb

also:
java -Dhttp.proxyHost=... -Dhttp.proxyPort=8080  -Dcom.ning.http.client.AsyncHttpClientConfig.proxy.protocol=http -Dcom.ning.http.client.AsyncHttpClientConfig.proxy.user=... -Dcom.ning.http.client.AsyncHttpClientConfig.proxy.password=...  -jar /Users/david/.conscript/sbt-launch.jar @/Users/david/.conscript/n8han/conscript/cs/launchconfig eed3si9n/scalaxb


I get the same result.


any idea?


Regards,
David

eugene yokota

unread,
Feb 9, 2012, 9:22:11 AM2/9/12
to conscri...@googlegroups.com
I specify my Java option to conscript apps as:

export CONSCRIPT_OPTS="-Dfile.encoding=UTF-8"

-eugene

David Portabella

unread,
Feb 9, 2012, 9:31:18 AM2/9/12
to conscri...@googlegroups.com
it seems that it concerns SBT.
running "sbt" from the console (without conscript), I get the same error.

I've tried with:
java -Dhttp.proxyHost=... -Dhttp.proxyPort=8080 -Dhttp.proxyUser=... -Dhttp.proxyPassword=... -Xmx512M -jar /usr/local/Cellar/sbt/0.11.2/libexec/sbt-launch.jar

and I still get the same problem.


I'll look a bit more there and if needed I'll post the question to the sbt forum.


regards,
David

Reply all
Reply to author
Forward
0 new messages