            (org.apache.http.conn.params ConnRoutePNames)
            (org.apache.http.impl.client DefaultHttpClient)
            (org.apache.http.impl.conn SingleClientConnManager ProxySelectorRoutePlanner)
-
+	   (org.apache.http.auth UsernamePasswordCredentials AuthScope)
            (org.apache.http.util EntityUtils)))
 
 (defn parse-headers

           (retry-handler e cnt context)))))
    (add-client-params! http-client scheme socket-timeout
                        conn-timeout server-name)
    (let [http-url (str scheme "://" server-name
                        (when server-port (str ":" server-port))
                        uri

  [{:keys [request-method scheme server-name server-port uri query-string
           headers body socket-timeout conn-timeout multipart debug debug-body
           insecure? save-request? proxy-host proxy-port as cookie-store
           retry-handler response-interceptor digest-auth] :as req}]
  (let [conn-mgr (or conn/*connection-manager*
                     (conn/make-regular-conn-manager req))
        http-client (set-routing (DefaultHttpClient.
