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 wrote: > Fastream Technologies wrote: > > Hi, > > >

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 Delphi/C++Bui

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 wrote: > Hello, > http://www.fastream.com/ics/debug21Sep2009.png shows a debug view from the > new Answer407

[twsocket] NTLMMessage returning garbage?

2009-09-21 Thread Fastream Technologies
Hello, http://www.fastream.com/ics/debug21Sep2009.png shows a debug view from the new Answer407 in authMode == authNTLM mode. In the second reach to the line breapointed, I get the garbage data. It is coming from below in processrequest() method: else if(authType == authNTLM && FRequestAuth.Len

Re: [twsocket] Cookie problem

2009-09-21 Thread Fastream Technologies
Ok, so I read that this was made impossible for security reasons. I had to remove the feature from content proxy part... Thanks, SZ On Mon, Sep 21, 2009 at 2:01 PM, Fastream Technologies wrote: > Hello, > > In our reverse proxy where the traffic is routed through it, our product > offers HTML a

[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 proxy--t

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 wrote: > Hello Arno, > > I noticed I was using a derived-class variable called FRequestAuthorization > and the fun

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 wrote: > Ok, that's a bug but not even with it fixed, it still does not work.

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 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 pascal unit f

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