Re: [twsocket] Problem with HTTPServer
Ok. it works now. I accidentally tried to send binary data with AnswerString where I should have used the stream method. Just FYI. Sorry for bothering. Best Regards, SZ - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, May 05, 2005 9:59 PM Subject: Re: [twsocket] Problem with HTTPServer I don't understand your problem. Returning a page as a reply of a POST is basic work. No need to change anything. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, May 05, 2005 8:29 AM Subject: [twsocket] Problem with HTTPServer Hello, I am trying to return a page after a HTTP POST is completed successfully. I noticed to do this, I need to set THttpConnection(Sender).FState := hcHeader, but the variable is no accessible. I propose to add this line to THttpConnection.PostedDataReceived(). Best Regards, SubZero -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] How secure is the NTLM authentication?
Maurizio Lotauro wrote: Hello, I made some authentication test with the THttpCli component. I use Ethereal to see what the component send and receive. With my big surprise, when the component made an authentication using NTLM, Ethereal show me the credential as clear text!!! At this point the question is: the NTLM is secure as Basic? There is something wrong in your test. Give a look at this trace. I'm accessing google via ISA proxy with NTLM auth using Firefox browser. GET http://www.google.it/ HTTP/1.1 Host: www.google.it User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.6) Gecko/20050318 Firefox/1.0.2 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Cookie: PREF=ID=14b8e3b92271573e:LD=it:TM=1101140627:LM=1101140629:S=n9UsGUmI-I7Ub2Eb HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ) Via: 1.1 ISATEST Proxy-Authenticate: Negotiate Proxy-Authenticate: Kerberos Proxy-Authenticate: NTLM Proxy-Authenticate: Digest qop=auth,algorithm=MD5-sess,nonce=a06234931252c501489c22b28ec04ccd70b868114600b40fe903b4674aff5653a72e0ac7b8d83e8a,opaque=f2dfc1e7794d3937edfd69ad407eca4e,charset=utf-8,realm=E-WORKS Proxy-Authenticate: Basic realm=isatest. Connection: Keep-Alive Proxy-Connection: Keep-Alive Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 4090 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN [..] /HTML GET http://www.google.it/ HTTP/1.1 Host: www.google.it User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.6) Gecko/20050318 Firefox/1.0.2 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Cookie: PREF=ID=14b8e3b92271573e:LD=it:TM=1101140627:LM=1101140629:S=n9UsGUmI-I7Ub2Eb Proxy-Authorization: NTLM TlRMTVNDUAABB7IIoAcABwDkBAAEACBWRVpaRS1XT1JLUw== HTTP/1.1 407 Proxy Authentication Required ( Access is denied. ) Via: 1.1 ISATEST Proxy-Authenticate: NTLM TlRMTVNTUAACDgAOADgFgomiodYVvVBRS94AADoAOgBGBQLODgA9FAC0AVwBPAFIASwSTAAIADgBFAC0AVwBPAFIAAwBTAAEADgBJAFMAQQBUAEUAUwBUAAMADgBpAHMAYQB0AGUAcwB0AAA= Connection: Keep-Alive Proxy-Connection: Keep-Alive Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 0 GET http://www.google.it/ HTTP/1.1 Host: www.google.it User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.6) Gecko/20050318 Firefox/1.0.2 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Cookie: PREF=ID=14b8e3b92271573e:LD=it:TM=1101140627:LM=1101140629:S=n9UsGUmI-I7Ub2Eb Proxy-Authorization: NTLM TlRMTVNTUAADGAAYAGYYABgAfg4ADgBAEAAQAE4IAAgAXgCWBYKIoEUALQBXAE8AUgBWAFMATQBhAAIAYwBlAGwAbABvAFYARQBaAFoALwtv7CEX+D8AxtB3ZA6A2cblXkuvt/w6NB4WhDBm9wV8 HTTP/1.1 200 OK Via: 1.1 ISATEST Connection: Keep-Alive Proxy-Connection: Keep-Alive Transfer-Encoding: chunked Date: Fri, 06 May 2005 07:49:12 GMT Content-Type: text/html Server: GWS/2.1 Cache-Control: private a22 htmlheadmeta http-equiv=content-type content=text/html; charset=UTF-8titleGoogle/titlestyle!-- [..] /html 0 P.S. A little question to the Ethereal users. Someone know if it is possible to monitoring the local tcp traffic? You mean loopback capture on local interfaces? I think this is not possibile due to a limitation of Windows IP stack. Regards -- Marcello Vezzelli CTO Software Development Department E-Works s.r.l. tel. +39 059 2929081 fax +39 059 2925035 Direzionale 70 - Via Giardini 456/c 41100 Modena - Italy -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Out of the office until 09 May 2005
Markus Bartat wrote: Ich werde ab 06.05.2005 nicht im Büro sein. Ich kehre zurück am 09.05.2005. I'm out of the office until 09 May 2005 RemoveFromList(him); Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Out of the office until 09 May 2005
I think there should be a prefix for such out of office (i.e. OoO:, just like ANN:) and emails with such prefixes in their subjects should not be forwarded by mailing lists. Just my two cents.. SZ - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, May 06, 2005 9:24 PM Subject: Re: [twsocket] Out of the office until 09 May 2005 Markus Bartat wrote: Ich werde ab 06.05.2005 nicht im Bro sein. Ich kehre zurck am 09.05.2005. I'm out of the office until 09 May 2005 RemoveFromList(him); Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Sending video data via UDP
- Original Message - From: Magno Lima [EMAIL PROTECTED] To: twsocket@elists.org Sent: Friday, May 06, 2005 8:18 PM Subject: [twsocket] Sending video data via UDP Hi List! I will repost a email I sent to Francois, of course it is for everybody: I am trying to send video from a point to another, using UDP. Francois told me about the UdpSend/UdpLstn demo, and I conclude with: The UdpSend/Lstn demo generates an error here (ListenBackLog Property does not exist), but I can read all the source. There you use a buffer as string. I am getting data from a video capture and I will transmit it by UDP (video broadcast), I receive a video_buffer that has about 20Kb of size (per second), so I need send that. The question is, I suppose to use TWSocket.Send(buf,size) ok? Will the udp stack take control over the 20Kb I am trying to send? How do I control that If you're using UDP the maximum packet size, and so the maximum size you can use in a send call is about 65KB, but be sure to set TWSocket's bufsize property. As for ListenBackLog, I'm not sure, can you just ignore the error? Did I answer the right question, I'm not entirely sure what you're asking... Other question is, there is the SendTo(Addr,buf,size) method, maybe I should use that, but is there any easy function to convert the normal dotted IP address (127.0.0.1, ie) to the 'sockaddr_in' type? There is a winsock function, and the WSocket unit has a wrapper for it, called something like inet_addr. That will get you the IP, and you will also want htons when assigning the port (to convert from host byte order to network byte order). Sorry if my doubts are very basic, but I am learning about your component and I ever sent video via internet :) That's it... :) Good luck :) Dan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be