Re: [twsocket] Need help with HTTP/1.1 digest auth for forward proxy

2009-09-20 Thread Fastream Technologies
Hi Arno, Ok, let me explain: due to stupid BCB linker errors,I had to place the function below in a pascal unit for calling the function you said: function THttpMTConnection.GenerateDigestChallenge : String; begin Result := AuthDigestGenerateChallenge( FServe

Re: [twsocket] Need help with HTTP/1.1 digest auth for forward proxy

2009-09-20 Thread Arno Garrels
Fastream Technologies wrote: > headerHead += "Proxy-Authenticate: Digest " + // I only changed this > line from rproxy to forward proxy >GenerateDigestChallenge() + >", domain=\"" + prefix + FAuthRealm + ":" + serverPort + "\"" + >", uri=\"" + URI + "\"" + >//", alg

Re: [twsocket] Need help with HTTP/1.1 digest auth for forward proxy

2009-09-20 Thread Fastream Technologies
I forgot to say: I also changed the parser for "Authorization:" request header to "Proxy-Authorization:" and that parser works well. But the problem remains. On Sun, Sep 20, 2009 at 11:24 AM, Fastream Technologies wrote: > Hello, > > Even though the code works for reverse proxy, it does not when

[twsocket] Need help with HTTP/1.1 digest auth for forward proxy

2009-09-20 Thread Fastream Technologies
Hello, Even though the code works for reverse proxy, it does not when I make it a part of IE/FF chain as forward proxy! In Answer401, I wrote: String AuthString = "auth"; String staleString = String((FAuthDigestStale && lastCommand != cproxyCommandPOST) ? ", stale=\"true\"" : ""); String pref