• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting a proxy

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to use parse-seq from clojure.contrib.lazy-xml but got a "java.net.SocketException: Connection reset". I guess it's because of the proxy. Is there a file where I can set the proxy ? If yes, which and how ?
 
Chris Houser
author
Greenhorn
Posts: 22
Clojure Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really a Java question and is answered thoroughly in the official documentation.

To set the HTTP proxy from within a Clojure program, you could use this:
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. I was expecting something like a properties file where it could be set, so that I don't need to do it all the time. Like in Maven where I put the proxy setting in settings.xml. Is user.clj the right place ?
 
Chris Houser
author
Greenhorn
Posts: 22
Clojure Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it works for Java, there's a very good chance it'll work for Clojure. Have you tried using settings.xml?
 
James Ulrich
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, did you try to use another proxy. Maybe some services like http://advanced.name or else? Probably it can helps you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic