[twsocket] Bug in HttpContCod.pas

2006-01-07 Thread Maurizio Lotauro
Hello, I just discovered a small bug in the HttpContCod unit. in the THttpContentCoding.GetCoding the line Result := Copy(ClassName, Length(BASE_CLASS_NAME), MAXINT) must be Result := Copy(ClassName, Length(BASE_CLASS_NAME) + 1, MAXINT) Actually this bug is harmless, so no need to hur

Re: [twsocket] HTTP client and NTLM

2006-01-07 Thread Maurizio Lotauro
Scrive Francois PIETTE <[EMAIL PROTECTED]>: > A user reported having problem with a server handling badly NTLM. Using the > option httpoNoNTLMAuth doesn't really disable NTLM. The user has derived a > new class from the component and has added in the constructor > FServerAuth = httpAuthBasic

Re: [twsocket] TWSocket.Dup() ?

2006-01-07 Thread Dan
Seems over the top... Either have a local var pointing to the socket (make it a TWSocket, not a pointer) or just directly access the main form socket. if mainform.wsocket1.state = wsconnected then mainform.wsocket1.sendstr('easy'); or if mylocalsocketref.state = wsconnected then mylocalsocketre

Re: [twsocket] TWSocket.Dup() ?

2006-01-07 Thread Michael Preslar
What I ended up doing (Which I'll spit out here just in case anyone else ever runs into the same situation .. Or maybe theres a better way): First define 2 variables.. chatform.socket : pointer; chatform.connected : boolean; Then set the chatform variables mainform.ConnectToServerClick() i

Re: [twsocket] DNSQuery BUG...

2006-01-07 Thread Ja
Wiadomość Oryginalna Od: Francois PIETTE <[EMAIL PROTECTED]> Do: ICS support mailing Data: Sat, 7 Jan 2006 21:23:06 +0100 Temat: Re: [twsocket] DNSQuery BUG... > > Ok. I've managed to make my project to check the list of domains for > > hosts but i've noticed that there is something w

[twsocket] HTTP client and NTLM

2006-01-07 Thread Francois PIETTE
A user reported having problem with a server handling badly NTLM. Using the option httpoNoNTLMAuth doesn't really disable NTLM. The user has derived a new class from the component and has added in the constructor FServerAuth = httpAuthBasic; Then it works. If someone could confirm this behav

Re: [twsocket] DNSQuery BUG...

2006-01-07 Thread Francois PIETTE
> Ok. I've managed to make my project to check the list of domains for > hosts but i've noticed that there is something wrong with DNSQuery > component. With some nameservers (like those of my provider) > DNSQuery sometimes doesnt get any answer... and although firewall > (and netstat) after some t

Re: [twsocket] FtpServer - When to send a file?

2006-01-07 Thread Francois PIETTE
> Yeah. Simple stuff. And it took me half a day to figure it out. Doh! The is just some experience gain :-) -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Michael Preslar" <[EMAIL PROTE

Re: [twsocket] DNSQuery BUG...

2006-01-07 Thread Ja
> Please start next time a new subject instead of reply to another one and > change the subject line. You do that every time and your message will > not be seen by many people. > Oh... sorry. Didn't know that it matters. -- To unsubscribe or change your settings for TWSocket mailing list plea

[twsocket] HTTP RFC1123 dates

2006-01-07 Thread Fastream Technologies
Hello, I am trying to implement HTTP headers (server-side) such as "If-modifed-since" and seeking for a solution to convert RFC1123 dates such as "Jan 6 2006, ..." to TDateTime before implementing myself. Any idea where to find it? Pascal/C++ ok. Best Regards, SZ -- To unsubscribe or chang

Re: [twsocket] DNSQuery BUG...

2006-01-07 Thread Wilfried Mestdagh
Hello Ann, > still doesn't start OnRequestDone event... Could be that it is waiting... To have a short timeout you can eventually set your own timeout timer. Please start next time a new subject instead of reply to another one and change the subject line. You do that every time and your message

Re: [twsocket] TWSocket.Dup() ?

2006-01-07 Thread Wilfried Mestdagh
Hello Michael, You dont need to replicate it. Just leave the Socket where it is. In your second form you can have a socket that points to the other socket. Dont drop one on the second form, but just (I called the socket Cli): SecondForm.Cli := MainForm.Cli; and then you call all in the Cli of th