How do I authenticate to a Proxy Server from clj-apache-http?
Posted
by erikcw
on Stack Overflow
See other posts from Stack Overflow
or by erikcw
Published on 2010-03-29T23:31:37Z
Indexed on
2010/03/29
23:33 UTC
Read the original article
Hit count: 346
I'm trying to get up an running using http://github.com/rnewman/clj-apache-http
(http/get (java.net.URI. url)
:headers {"User-Agent" user-agent}
:parameters (http/map->params
{:default-proxy (http/http-host :host "localhost"
:port 8888)})
:as :string)
Problem is, my proxy (squid) requires authentication. How do I "feed" my username/password into this library?
Thanks!
© Stack Overflow or respective owner