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

2009-09-21 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 + \ + //, algorithm=\MD5\ +

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

2009-09-21 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(

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

2009-09-21 Thread Arno Garrels
Fastream Technologies wrote: 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(

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

2009-09-21 Thread Fastream Technologies
Ok, that's a bug but not even with it fixed, it still does not work. Thanks, SZ On Mon, Sep 21, 2009 at 10:23 AM, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Hi Arno, Ok, let me explain: due to stupid BCB linker errors,I had to place the function below in a

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

2009-09-21 Thread Fastream Technologies
Hello Arno, I noticed I was using a derived-class variable called FRequestAuthorization and the function was looking for FRequestAuth! It's fine now! Thanks!! SZ On Mon, Sep 21, 2009 at 10:42 AM, Fastream Technologies ga...@fastream.comwrote: Ok, that's a bug but not even with it fixed, it

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

2009-09-21 Thread Fastream Technologies
Does anybody know which RFC define the HTTP/1.1 CONNECT command? It's not in 2616 (says the keyword is reserved for future)... On Mon, Sep 21, 2009 at 11:07 AM, Fastream Technologies ga...@fastream.comwrote: Hello Arno, I noticed I was using a derived-class variable called

[twsocket] Cookie problem

2009-09-21 Thread Fastream Technologies
Hello, In our reverse proxy where the traffic is routed through it, our product offers HTML authentication. Basically unless a cookie is present a web page is displayed that posts data to another which issues the cookie and redirects. It works well in reverse proxy case but not in forward

Re: [twsocket] NTLMMessage returning garbage?

2009-09-21 Thread Fastream Technologies
Hi, I am using BCB2007 and could this be the reason? Because I see some ifdefs in icsntlm.. units such as COMPILER12_UP... HTH, SZ On Mon, Sep 21, 2009 at 6:24 PM, Fastream Technologies ga...@fastream.comwrote: Hello, http://www.fastream.com/ics/debug21Sep2009.png shows a debug view from

Re: [twsocket] NTLMMessage returning garbage?

2009-09-21 Thread Arno Garrels
Fastream Technologies wrote: Hi, I am using BCB2007 and could this be the reason? Because I see some ifdefs in icsntlm.. units such as COMPILER12_UP... I don't know what's wrong with your code, the Delphi HTTP auth-demos work fine with both ANSI and UNICODE. COMPILER12_UP is

Re: [twsocket] NTLMMessage returning garbage?

2009-09-21 Thread Fastream Technologies
Ok, I think I found it. One thing to note: in ICS under BCB, unless the defines of the ICS package is exactly the same as the demo project, it does weird things (read RANDOM AVs). FYI. Regards, SZ On Mon, Sep 21, 2009 at 7:22 PM, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies