[twsocket] HTTPServer - How to handle empty, header only, POST requests?

2008-03-02 Thread RTT
Strange or not the next html form code generate a empty,only header, POST request. The cause is the onsubmit event. If in the httpserver onPosteDocument I accept the request the connection will hangup because no OnPostedData will trigger. So I ask, what is the best way to treat this situatio

Re: [twsocket] httpserver memoryleak

2008-03-16 Thread RTT
You have to nil the stream object if Assigned(ClientCnx.DocStream) then begin ClientCnx.DocStream.Free; ClientCnx.DocStream:=nil; end; of just Uses SysUtils; if Assigned(ClientCnx.DocStream) then freeandnil(ClientCnx.DocStream) > I tried: > > ClientCnx := TMyHttpConnection(Client)

Re: [twsocket] Intercept Http Request Headers and Alter Them

2008-03-18 Thread RTT
This is a very simple parse solution, but works. HeaderList := TStringList.Create; HeaderList.NameValueSeparator := ':'; HeaderList.Text := YourHeaderString; //must be a string with header items delimited by carriage return and line feed, as it came in the raw

[twsocket] Exception on OverbyteIcsNtlmSsp unit initialization

2008-04-29 Thread RTT
I was trying a Windows application with ICS in Linux, using WineHQ, and it refused to even start. I tracked the problem to the initialization of the OverbyteIcsNtlmSsp unit, LoadSecPackage procedure. pInit := GetProcAddress(SecPackageHandle, SECURITY_ENTRYPOINT); if not Assigned(pIni

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread RTT
>> That's IMO not worth the effort, I was searching for a very simple >> solution that took not more than a few minutes to change everything. >> > > What about writing a new TIcsIniFile doing the job ? > Would be enough to search&replace TIniFile by TIcsIniFile. > > TIcsIniFile or TUnicodeIn

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread RTT
>> XML can ease the process. >> > > I don't think so. XML is an heavy beast, taking a lot of code and power. I > don't like it for that purpose. Just one idea to implement the ini sections handling, without the need to write parsing code. It's heavy, but to deal with these little ini files

Re: [twsocket] Proposal to replace TIniFile by TRegIniFile in allv7demo applications

2008-11-08 Thread RTT
> If the problem with current demos ini files is just related to Unicode > strings handling, probably an TCustomIniFile descendant with string utf8 > encode/decode is enough. Obvious from TCustomIniFile will not work, must be descendant from TIniFile. TMyUnicodeIniFile=Class(TIniFile) public

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
> It is not that easy! > The code above might work if String maps to an AnsiString, > however fails if String maps to a UnicodeString ( Delpi 2009 ). > This little modification does the job in D2009 uses rtlconsts; ... procedure TMyUnicodeIniFile.WriteString(const Section, Ident, Value: st

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
> Yes, that should work and is the bare minimum required for use > in the demos. Though it cannot handle a possible BOM. > With a little trick and we just need to rewrite the create constructor. unit UnicodeIniFile; interface type TMyUnicodeIniFile = class(TIniFile) public constructor

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
>> The D2009 TInitFile already uses the WritePrivateProfileStringW and >> GetPrivateProfileStringW versions of the functions, but only work if >> the ini file already exists and is Unicode. >> > > Surprise! That works indeed with UTF-16, however if there is a UTF-8 > BOM and data I cannot r

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
> As I wrote in my previous message, this does not work for me. > Whenever Windows finds an UTF-8 BOM it does not return a single byte. > Sorry, I have not understood. For me, the previous code works fine in Vista and XP. I change the encode of the ini file using Notepad from UTF16 to UTF8, an

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
> > My fault, now it works. But it won't be the same level of backwards > compatibility that can be achieved with a class derived from TCustomIniFile. > Can you, please, point one possible problem? -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.eli

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in allv7 demo applications

2008-11-09 Thread RTT
>> It appears the OS API code is not reading the 3 UTF8 BOM bytes >> correctly if there are only 3 byte before the section name. >> > > That's what I mean, don't rely on the API in this case since all > this stuff is undocumented. Better use a class that handles > file access natively. >

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
>> Old Delphi saved ini files will open correctly in D2009 compiled demo too. >> > > It is also important that the INI file generated by D2009 compiled > application remains compatible with the same application compiled with older > Delphi as long as it is possible (This is not possible if

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in allv7 demo applications

2008-11-09 Thread RTT
Arno Garrels wrote: > Back again, it does not work reliable for me, please try the attached INI. > > This elist support attachments?! Or my email client made something wrong or the elist software trashed the attachment. Please send it directly to my email address -- To unsubscribe or change y

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in allv7 demo applications

2008-11-09 Thread RTT
Arno Garrels wrote: > Here's the INI file that does not work with your code for me. > > It appears the OS API code is not reading the 3 UTF8 BOM bytes correctly if there are only 3 byte before the section name. Probably a bug in the API, or a text files requirement, BOM always terminated by EOL?

Re: [twsocket] Proposal to replace TIniFile byTRegIniFile in all v7 demo applications

2008-11-09 Thread RTT
> If you derive something like the TMemInFile that writes all data in > one call to a method UpdateFile it's possible to add a BOM or not > depending on the data itself. You can read a BOM-marked UTF-8 INI + > file, change it and write it back as Ansi or plain Ascii without BOM > if encoding is n

Re: [twsocket] Pause and Resume just not working!

2009-01-23 Thread RTT
just 3.5 MB! I'm not an expert but I think you don't see the memory usage because data is not cached in the client. Piotr clearly say that if the RCV client is not accepting data, Winsocks cache it until its internal buffer is full and only then report can't accept more because c

Re: [twsocket] Pause and Resume just not working!

2009-01-23 Thread RTT
ytes!' message show, so something is different at your system. RTT -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Pause and Resume just not working!

2009-01-24 Thread RTT
> Hi RTT, > > which Operationgsystem and Pachlevel are you using? Do you > use ICS Version 6 RC1 ? I am using Windows XP with > Service Pack3, tested my Client now on 3 Clients with this config. > I am using ICS Versoin 6 at RC1. I added my client.exe and > server.

[twsocket] Is this elist software/server working properly?

2009-01-24 Thread RTT
Is just with me or something is not working? Some of my messages/replies simple don't hit the list, and some others don't show up in the archive. I also noted other members messages I received today are not show in the archive too! RTT -- To unsubscribe or change your settings fo

Re: [twsocket] Pause and Resume just not working!

2009-01-24 Thread RTT
> Correct, beside the maximum limit of 65,353 in detail: With TCP Window > Scaling (RFC 1323) you can use values up to two Gigabytes. I read 1GB From RFC1323: "Since the max window is 2**S (where S is the scaling shift count) times at most 2**16 - 1 (the maximum unscaled window), the maximum w

Re: [twsocket] Freeing of sockets

2009-02-18 Thread RTT
Markus Mueller wrote: > This also don't work. I never see my (extended) destructor beeing called, > if it is called "Free" nor "Destroy". Also my memory usage is increasing > if I just do "release". If I do Free I get memory errors but the memory > usage is not increasing. > > I suppose you hav

Re: [twsocket] webpage image source

2009-05-02 Thread RTT
RFC1738 - Uniform Resource Locators (URL) http://www.faqs.org/rfcs/rfc1738.html RFC1808 - Relative Uniform Resource Locators http://www.faqs.org/rfcs/rfc1808.html > Hi, I'm using httpcli to save a webpage html doc and I extract all of > it's image locations to a text file by saving the ' be a di

Re: [twsocket] webpage image source

2009-05-02 Thread RTT
Just read sections 3 and 4 http://www.faqs.org/rfcs/rfc1808.html Section 3 explain how you define, to the page you are parsing, its base URL. The base URL is needed to resolve later relative URLs. Relative URLs resolving method is explained at section 4. > I thought that the root dir could be so

Re: [twsocket] OverbyteIcsHttpSrv V7

2009-06-13 Thread RTT
Some time ago I made some tests using next icshttpserver changes to provide gzip compression. Because I use the free ZLibEx unit in my projects uses ... {$IFDEF USE_ZLIB} //dZLib, zDeflate, ZLibh, ZLibEx, {$ENDIF} Commented all the other code inside {$IFDEF USE_ZLIB} {$ENDIF} blocks and

Re: [twsocket] OverbyteIcsHttpSrv V7

2009-06-13 Thread RTT
ICS has OverbyteIcsZlibHigh with versions of many of the Zlib functions, although only ZlibCompressStreamEx, not ZcompressStream2, but they are probably similar. Do you have the time to update the V7 server component (from the nightly SVN zip) to use the existing ICS Zlib units? They are us

Re: [twsocket] OverbyteIcsHttpSrv V7

2009-06-16 Thread RTT
Hi Angus, With one bug fix to reset the stream to the start, your code worked fine thanks. Don't know if this is really a bug, or if the need to reset it correspond to a not standard way to deal with streams by the HTTPServer component. In order to enhance the AnswerStream functionality

Re: [twsocket] OverbyteIcsHttpSrv V7

2009-06-16 Thread RTT
Just to post some enhancements to my early proposed changes. if not Assigned(FDocStream) then PutStringInSendBuffer('Content-Length: 0' + #13#10) else begin if hoContentEncoding in FServer.Options then be

Re: [twsocket] OverbyteIcsHttpSrv V7

2009-06-17 Thread RTT
There is nothing to stop you using alternative compression libraries, I have applications using different components each with their own versions of zlib. Yes, of course, but why increase final application size, and resources used, if we can simple add the possibility to not duplicate it,

Re: [twsocket] OverbyteIcsHttpSrv V7

2009-06-17 Thread RTT
If we are not going to use compression, or we are handling it in our own code, why link the zlib library? You said you are not using the v7 component, so none of this currently effects your applications. It is not realistic to make the code more complicated just to satisfy compatibility

Re: [twsocket] Sending Record Type Data over tcp

2009-06-29 Thread RTT
(same as load it from a file) RTT -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Sending Record Type Data over tcp

2009-06-30 Thread RTT
Rcvd buffer. And why you don't use only one record, with variant part? TEmployee = record FirstName, LastName: string[40]; BirthDate: TDate; case Salaried: Boolean of True: (AnnualSalary: Currency); False: (HourlyWage: Currency); end; RTT -- To unsubscribe or change your settings fo

Re: [twsocket] Report a strange problem about usingTsslHttpCli(ICSv7)in Delphi 2010 thread.

2009-10-03 Thread RTT
I was thinking of Windows being unicode... Isn't it possible to enter Chinese characters with Arial on all Windows'? No, you can't. You have to change your Windows character set to an unicode character set like #Arial Unicode MS Yes, you can. If application is Unicode, there is only the need

Re: [twsocket] OpenSsl Verify bug?

2009-10-04 Thread RTT
Hi, What do you think about this verify result? D:\>openssl verify -CAfile TrustedCA.pem -untrusted MyServerCert.pem MyServerCert.pem MyServerCert.pem: OK TrustedCA.pem contains the issuer certs of MyServerCert.pem. If the TrustedCA.pem file contains the root CA, what happen if you add

Re: [twsocket] OpenSsl Verify bug?

2009-10-04 Thread RTT
Arno Garrels wrote: RTT wrote: Hi, What do you think about this verify result? D:\>openssl verify -CAfile TrustedCA.pem -untrusted MyServerCert.pem MyServerCert.pem MyServerCert.pem: OK TrustedCA.pem contains the issuer certs of MyServerCert.pem. If the TrustedCA.pem file conta

Re: [twsocket] Website hacked?

2009-11-03 Thread RTT
These pop-ups are probably coming from the Motigo Webstats Counter http://web.me.com/thierry.cornelis/Site/Blog/Entries/2009/1/23_Motigo_Webstats_Counters_Generate_Pop-ups.html Better change to statcounter, completely free of any advertise technique. Hi, I just visited www.overbyte.be At this

Re: [twsocket] Website hacked?

2009-11-03 Thread RTT
These pop-ups are probably coming from the Motigo Webstats Counter http://web.me.com/thierry.cornelis/Site/Blog/Entries/2009/1/23_Motigo_Webstats_Counters_Generate_Pop-ups.html I have removed Motigo counter. Could you check if you still see the popup (Strangely, I don't see it from here).

Re: [twsocket] OverbyteIcsPingTst

2009-11-20 Thread RTT
Now, Why the ping test cannot ping but CMD can when the ESET smart security is on? Am I missing something? Because it's not the ping functionality that's blocked but the application that executes the ping? The system ping.exe is not being blocked by ESET, but your application ping test appl

Re: [twsocket] MD5 passwords

2009-11-21 Thread RTT
well, i created the string with a linux-tool on the radius-server (freeradius). It is used as: cryptpasswd --md5 . Free pascal has a unit that does exactly what your posted perlscript code does http://florianklaempfl.de:8000/fpctrunk/file/70e283550952/packages/hash/src/unixcrypt.pas#l1 But

Re: [twsocket] Send data as a never ending document

2010-02-02 Thread RTT
Are you using chunked transfer encoding, or something else? Found it, I forgot to set linemode properly :-( Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Send data as a never ending document

2010-02-03 Thread RTT
Are you using chunked transfer encoding, or something else? That's what I'm doing, at least I'm trying to, but it's still not working. Do you have an example sending it with a THttpCli ? No, just with httpserver. Are you able to properly set up the encoding, or it just don't work as you want,

Re: [twsocket] Send data as a never ending document

2010-02-03 Thread RTT
the problem I have is that the messages contain binary data. I'm sending binary data with that code without problem. Every chunk header inform of the data length the chunk message body has, so, the type of data in the message body is errelevant. Never tested with an THttpCli, but you just ne

Re: [twsocket] HttpCli TransferEncoding

2010-02-04 Thread RTT
I can't get the client working with it. httpCli.TransferEncoding is a readonly property. How can I set the transfer encoding to chunked and send seperate chunks ? From what I see there is no easy way to do it with the HttpCli, without overriding some methods or/and add your own PostChunked me

Re: [twsocket] help to convert from utf8 to ansi (locale)

2010-04-28 Thread RTT
This seems to work fine UTF8Decode(URLDecode('Sin título1_html_m5b7e3440.jpg')); Curiosity struck, so I googled it... Apparently you aren't the only one with this issue. If you have the string before it gets encoded in the 1st place you can convert to UTF8 first, then encode it to URL so you ca

Re: [twsocket] help to convert from utf8 to ansi (locale)

2010-04-28 Thread RTT
Obviously what works fine is the sequence of decode transformations on your encoded filename, not in the already decoded string as I posted. Sorry. This is the correct example: UTF8Decode(URLDEcode('Sin%20t%C3%ADtulo%201_html_m5b7e3440.jpg')); This seems to work fine UTF8Decode(URLDecode('Sin

Re: [twsocket] help to convert from utf8 to ansi (locale)

2010-04-28 Thread RTT
, default set to true, parameter, DetectUtf8, to define if the auto-detection, and decoding, of UTF8 encoded strings must be made automatically by the function after the URLDecode conversion Hi RTT Thanks for your tips. Finally I get it work but I should write code a bit different String usStr

Re: [twsocket] IPv6 implementation details

2010-05-29 Thread RTT
Is happening here too, but only if I continue with the step over debugging (F8) after the 4 thread are created. Never happened while they are created. No idea if that's what you want to say with "repeat pressing F8 until the AV is raised." The debugger will keep stepping the WmTest function, un

[twsocket] THttpServer - How to handle unimplemented request methods

2010-09-09 Thread RTT
Hi everyone! Is there any simple way to handle other than the GET, POST and HEADER request methods,... as OPTIONS,...? The way it is now, the THttpConnection.ProcessRequest procedure always respond with a Answer501, not giving any chance to handle other methods. I think a TriggerOnUnknownMeth

Re: [twsocket] THttpServer - How to handle unimplemented request methods

2010-09-10 Thread RTT
On 10-09-2010 16:43, Arno Garrels wrote: Another thing that would be useful, if added to the code base of the > THttpConnection, is the possibility to send additional headers from > the THttpConnection.SendDocument, to define cache control, etc.. > procedure THttpConnection.SendDocument(SendT

Re: [twsocket] THttpServer - How to handle unimplemented request methods

2010-09-10 Thread RTT
Thank you for the explanation Angus. But, why don't keep the naming schema? TriggerAfterProcessRequest ( and respective OnAfterProcessRequest) would be less confuse. Rui -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/list

Re: [twsocket] THttpServer - How to handle unimplemented request methods

2010-09-10 Thread RTT
Done. I've now sent you a PM with the .diff file. Feel free to apply your changes to the latest SVN revision and send me the patch file by PM. Changes MUST not break existing code and a change log in unit's comment section was helpful too. -- To unsubscribe or change your settings for TWSocke

Re: [twsocket] THttpServer - How to handle unimplemented request methods

2010-09-11 Thread RTT
On 11-09-2010 09:22, Angus Robertson - Magenta Systems Ltd wrote: What is the purpose of the OPTIONS method? From http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html "The OPTIONS method represents a request for information about the communication options available on the request/response ch

Re: [twsocket] Client/Server Demo

2010-10-07 Thread RTT
Is it possible to encrypt the connection between the client and server? The connection, or your custom data? -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Client/Server Demo

2010-10-07 Thread RTT
Any kind of demos for the person who has never done such things before? But what kind of data are you sending/receiving. Plain text, binary? You just need to encrypt it before send, and decrypt at receive. Here is a good cryptography library http://www.cityinthesky.co.uk/cryptography.html -- To

Re: [twsocket] help on httpcli post

2010-10-12 Thread RTT
Here is a sample that work. Get the 'multipart/form-data' encode tstream class code from this unit: http://read.pudn.com/downloads116/sourcecode/internet/495621/Gz235_200671623235689/cn700_del549790557/IndyMultipartFormData/MsMultiPartFormData.pas__.htm Start a new Delphi application, and in th

Re: [twsocket] [OT] Hoping somone can point me in the right direction with IE and file save

2010-12-17 Thread RTT
Are the headers as you guys would expect? The "Vary: *" header prevents the response from being cached, so IE "gets confused" when processing the save attachment request. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman

Re: [twsocket] SslWSocketServer & SslWSocket

2011-01-16 Thread RTT
Now, The project "OverbyteIcsSrvTcp" has absolutely nothing in inside to help me. I can't find anything about sending or receiving in this project. The OverbyteIcsSrvTcp uses the OverbyteIcsTcpCmd.pas, where you will find the code of the server. The project "OverbyteIcsClient7" gives m

Re: [twsocket] SslWSocketServer & SslWSocket

2011-01-16 Thread RTT
It gives error when clicking the connect button What's the connect error? however, I will be able to fix the errors but, this still doesn't help me much because, I need to be able to send the commands from the server to the client as well. I can find nothing about how to send anything from

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread RTT
On 18-01-2011 11:25, daniel cc wrote: So you build your combobox, wait 10 seconds, one client disconnects, all the clients numbers reduce by one and your combobox is out of date. When you try to send a command to one of them it may be the wrong client or you'll get an exception because there ar

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread RTT
On 18-01-2011 13:50, daniel cc wrote: Clients are not having static IP and the place where clients are gonna be doesn't allow top open any ports for incoming trafic etc. Connecting from the server to the server placed in clients isn't going to work in my case or perhaps I am mistaking? If t

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
(I am using SSL sockets in both sites) Why you insist in use SSL if the client and server applications are coded by you?!! Why use a standard that only exist because of the need to connect many different implementations of clients to many different implementations of servers? You will be mu

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
SSL/TLS aktually uses common, powerful and strong encryption algorithms. However secure peer to peer communication is much more than just that. SSL security includes, for instance, peer verification and protects against "Man in the Middle" attacks. "Man in the Middle" attacks don't work if the

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
On 26-01-2011 20:15, daniel cc wrote: I Insist because I have no other options because I don't have knowledge of doing it in the other way. So, you just need to learn how to use a common web search engine and how to make the right questions at the right places. Reading old replies to your que

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-26 Thread RTT
"Man in the Middle" attacks don't work if the "man in the middle" don't know how to handle the encrypted data/protocol he is intercepting. True, and how do you manage that is not happening? Can't be happening because the man in the middle can't generate valid data, or alter intercepted data

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-27 Thread RTT
It's easy to implement encryption but you'll have to add key exchange also and exclude possibility of key sniffing what is quite harder. Just start with a fixed strong password, and add to it a variable salt that can be a hash of some of the client/server header fields. One of this fields c

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-27 Thread RTT
It is a very simple monitoring system. SSL is okay for this as far as I am concerned. As others have say to you already, just concentrate your efforts in the development of the client and server code. Leave the data encryption to the last stage of the project. Starting with the SSL componen

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-27 Thread RTT
With a stolen key that's easy. Sure, and this is exactly what SSL try to circumvent. But not so easy if the encrypt key is not a fixed value, but a variable one. The attacker will need to stole the client or server code and reverse engineering it too. This is also valid for SSL. No, the

Re: [twsocket] TWSocketServer and TWSocket Port

2011-01-27 Thread RTT
On 27-01-2011 18:27, Arno Garrels wrote: Without the certificate(s) and private key(s) he may intercept transparently as long as he likes. When he wants to decrypt the session on the fly he has to go thru the handshake process on behave of the victim by presenting the stolen certificate(s), actin

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread RTT
On 12-02-2011 22:31, brian - wrote: there's no option in httpcli to manually modify the headers before a request You can do it from the OnBeforeHeaderSend event. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twso

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread RTT
On 12-02-2011 22:31, brian - wrote: Authorization: OAuth oauth_callback="oob", realm="", oauth_nonce="5B2407849960FC2B4EC23007EA63E8ED", oauth_timestamp="1297549627", oauth_consumer_key="5BZYtiAzGvQTL0ZEhAn45w", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_signature="RjpaedDdvs6

Re: [twsocket] SVN update notifications

2011-02-17 Thread RTT
On 17-02-2011 15:17, Francois PIETTE wrote: Depending on the number of interested peoples, we will either send individual emails or use another mailing list. How about an RSS feed and a Twitter ICSSVN account? :-) -- To unsubscribe or change your settings for TWSocket mailing list please goto h

[twsocket] THttpCli - RequestDone events during ongoing relocation

2011-02-17 Thread RTT
During a relocation an intermediary RequestDone events is fired. Is this really needed, and for what propose? If yes, then I think it should be fired with the correct response status code, not zero as now, so it can be clearly detected as not the final request done even. Also, an "httpRelocating

Re: [twsocket] THttpCli - RequestDone events during ongoing relocation

2011-02-17 Thread RTT
During a relocation an intermediary RequestDone events is fired. Is this really needed, and for what propose? Relocation is considered as a another automatic request. You may cancel it on the fly or simply disable the feature with FollowRelocation property. Yes, but if I want to follow it,

Re: [twsocket] SVN update notifications

2011-02-17 Thread RTT
On 17-02-2011 17:18, Arno Garrels wrote: Since we already have an internal e-mail notification sent to TeamICS members (based on TSmtpCli) it would be easy to send another copy to some mailing list. How about upgrade that program to add a new entry to a RSS feed, and post a new Twitter message?

Re: [twsocket] SVN update notifications

2011-02-17 Thread RTT
Because ICS does not have Twitter or RSS components! Or are you offering to contribute them? Nothing mine, but a rapid Google search reveals this two http://www.lakraven.com/delphi-stuff/ttwitter/ http://sourceforge.net/projects/simplerss/ -- To unsubscribe or change your settings for TWSocke

Re: [twsocket] SVN update notifications

2011-02-17 Thread RTT
On 17-02-2011 17:38, Angus Robertson - Magenta Systems Ltd wrote: Or are you offering to contribute them? The Twitter component could be provided by brian - , that the other day asked in this list about passing OAuth parameters in the request header. -- To unsubscribe or change your settings fo

Re: [twsocket] SVN update notifications

2011-02-17 Thread RTT
On 17-02-2011 18:50, Angus Robertson - Magenta Systems Ltd wrote: Nothing mine, but a rapid Google search reveals this two http://www.lakraven.com/delphi-stuff/ttwitter/ which use the Indy HTTP component, not ICS. It's a complex component, not trivial to convert to ICS. http://sourceforge.net/

Re: [twsocket] SVN update notifications

2011-02-17 Thread RTT
On 17-02-2011 18:50, Angus Robertson - Magenta Systems Ltd wrote: > http://sourceforge.net/projects/simplerss/ also use Indy HTTP, a complex XML project. In this case the Indy stuff is used only to format datetime values, very easy to replace. There is also an TIdHTTP component, used only in t

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-17 Thread RTT
On 17-02-2011 22:35, brian - wrote: I got this working, httpcli is just working as expect, was nothing wrong with it. I will keep that extra variable for the headers anyway, it's a lot more convenient than the notify event. Great, thanks for the followup. Are you using the Indy components, for

Re: [twsocket] SVN update notifications

2011-02-18 Thread RTT
On 17-02-2011 18:50, Angus Robertson - Magenta Systems Ltd wrote: Nothing mine, but a rapid Google search reveals this two > http://www.lakraven.com/delphi-stuff/ttwitter/ which use the Indy HTTP component, not ICS. It's a complex component, not trivial to convert to ICS. I'm already tweeting f

Re: [twsocket] TTwitter component

2011-02-18 Thread RTT
On 18-02-2011 13:52, Francois PIETTE wrote: It starts to become interesting :-) What other dependency is there ? None What is the license for that component ? Could it be added to ICS distribution or ICS usermade web page ? From what I can see, MIT License for all the code from the author

Re: [twsocket] HttpNoBasicAuth

2011-02-21 Thread RTT
it's time for a rewrite from scratch IMO. And give it a different name, to bypass the "no brake early code" rule, or some of the annoyances will have to remain. Or start a new branch of renewed components. And, IMHO, if technically possible, the THttpCli should mix HTTP and HTTPS, and handle in

Re: [twsocket] TTwitter component

2011-02-27 Thread RTT
On 27-02-2011 16:01, brian - wrote: Simply added deflate to the result. Without that, I don't get any data back. Juts tested your component here, without that modification, and works just fine. What exactly happen in your case. What data you don't get? -- To unsubscribe or change your settings

Re: [twsocket] TTwitter component

2011-02-27 Thread RTT
You can remove the b64ASM.pas dependency using the ICS equivalent //b64asm.Base64Encode(HMAC_SHA1_EX(SignBase,signkey)); OverbyteIcsMimeUtils.Base64Encode(HMAC_SHA1_EX(SignBase,signkey)); Probably not so fast, but not really important in this case of small length strings. -- To unsubscr

Re: [twsocket] TTwitter component

2011-02-27 Thread RTT
On 27-02-2011 17:18, brian - wrote: use an alternate method to wont require the user to visit the twitter site to get the PIN code, the app will simulate a browser login, catch the cookies and proceed to auth on its own to retrieve the PIN. This will work until twitter decide to change these htm

Re: [twsocket] TTwitter component

2011-02-27 Thread RTT
On 27-02-2011 18:39, brian - wrote: I like it tbh, even with the annoyance of havign to login and retrieve the pass for the user, it's only required once. As I said, Twitter don't require the PIN, so you can ignore that step. User only need to authorize the application, and forget about the PI

Re: [twsocket] TTwitter component

2011-02-27 Thread RTT
On 27-02-2011 19:29, brian - wrote: I don't really like the idea of embedding the TWebBrowser object, bulky and buggy activex stuff. The WebBrowser control works very well for this simple "navigate to a page" task. If you want to test, just replace your RequestPIN code with the next one.

Re: [twsocket] TTwitter component

2011-02-27 Thread RTT
On 27-02-2011 23:31, brian - wrote: I added the ShellExecute import to avoid adding another unit; I rather not include entire units for things where I need only a couple procs and such, it adds up to the exe unnecesarily. The smart linking feature should work ok for the shellapi unit. As for

Re: [twsocket] THttpWebserver and php

2011-03-01 Thread RTT
On 01-03-2011 10:06, A Drent wrote: I've looked into the usermade page, but which sample do you refer to? HTTPCLIEXAMPLE.ZIP ? ICS_WebInterface.zip This one may help too http://users.telenet.be/ws36637/ -- To unsubscribe or change your settings for TWSocket mailing list please goto http://list

[twsocket] HTTP persistent connections

2011-03-06 Thread RTT
Isn't the CtrlSocket.State reliable to know if a connection is still on? I'm trying to reuse an THttpCli, but I'm getting 10053 errors if a persistent connection is idle for some time, I suppose the server keepalive timeout. The ICS THttpCli code check this CtrlSocket.State property, to try to

Re: [twsocket] HTTP persistent connections

2011-03-07 Thread RTT
On 07-03-2011 06:31, Arno Garrels wrote: That's sounds like a bug. I would expect that THttpCli is reset to default values after that error? I don't see any reference to "10053" in any of the ICS code, so I suppose this situation is not being handled internally by the THttpCli. Because the THttp

Re: [twsocket] HTTP persistent connections

2011-03-07 Thread RTT
On 07-03-2011 06:31, Arno Garrels wrote: TWSocket property KeepAliveOnOff may be used to setup winsock to send keep-alive packets in the background in order to detect such brocken connections, however that's not reliable since both peers must support it and routers have to route the keep-alive pa

Re: [twsocket] THttpServer memory leak

2011-03-17 Thread RTT
On 17-03-2011 17:12, FrancoGG wrote: the application's memory usage keeps increasing every time a user connects If you are using a custom THttpConnection, check if you are missing to free any of its owned objects in its destructor method. -- To unsubscribe or change your settings for TWSocket m

Re: [twsocket] HTTP...

2011-03-18 Thread RTT
On 18-03-2011 17:03, zayin wrote: It all shows up fine but when the user hits the accept button I get back the 'Tagname' with the added '+ ' symbols " Stop+Pump+CRT". Why not just " Stop Pump CRT"? http://www.cs.cf.ac.uk/Dave/PERL/node201.html Use ICS ExtractURLEncodedValue function to decode t

Re: [twsocket] THttpCli not returning?

2011-04-11 Thread RTT
On 11-04-2011 16:49, Francois PIETTE wrote: I don't know if there's a better way That is fine. So the HttpCli built-in timeout is not enough?! -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our web

Re: [twsocket] HTML encoding to char

2011-04-20 Thread RTT
Delphi HTTPApp unit, function HTMLDecode Hi all, I need to convert text that uses special HTML encoding such as "&" or " " to their corresponding charachter. Do any of you know if such function exists? 'Cause at the moment I'm thinking of writing it myself but it's gonna take quite a while...

Re: [twsocket] HTML encoding to char

2011-05-04 Thread RTT
If this is HTML related, why you use "XML" in the names?! Why not use the faster, and memory efficient, HTTPApp.pas code methods? Ok, I took your example and created a (I suppose) complete encode-decode unit. Daniele -- To unsubscribe or change your settings for TWSocket mailing list please go

Re: [twsocket] HTML encoding to char

2011-05-04 Thread RTT
Anyway I never though names would be a problem in a non official unit... Official or not, function names should reflect the propose, or readers will fail to find it, of find wrong code for what they are looking for. Anyway, I was just digging to see if something else was behind this incorrec

Re: [twsocket] File Sharing

2011-05-17 Thread RTT
You just need to put your Server application accessible from the Internet, opening the used TCP port in the firewall, and routing it (port forwarding) in the router that that PC use to connect to the Internet. Your Clients should then connect to the public IP of that router. It's exactly the sa

  1   2   >