[twsocket] Know the method used inside OnRequestDone?
Dear ICS User, Is exist a way to know inside the OnRequestDone if the command done was a POST or a GET ? Thanks, Bruno -- 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] Know the method used inside OnRequestDone?
Hi Brian, Great ! Thanks ! THttpRequest = (httpABORT, httpGET, httpPOST, httpPUT, httpHEAD, httpCLOSE); Le 12/12/2012 16:52, brian - a écrit : RqType: THttpRequest; this holds the request type, such as get, post, put, head etc. On Wed, Dec 12, 2012 at 3:12 PM, Bruno Mannina bmann...@free.fr wrote: Dear ICS User, Is exist a way to know inside the OnRequestDone if the command done was a POST or a GET ? Thanks, Bruno -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-**bin/mailman/listinfo/twsockethttp://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- 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 -- 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
[twsocket] HttpCli, state Ready ?
Dear, Can I use the property Http.State=Ready for consider that the http component is fully available and its last download is finished? Many thanks, Bruno -- 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] Merry Christmas
Bonnes Fêtes de fin d'année, d'Aix en Provence - France Bruno Mannina Le 24/12/2011 11:42, François Piette a écrit : Hi ! I wish a Merry Christmas to all of you and your families. -- François Piette -- 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 -- 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
[twsocket] HttpAppSrv1, ClientDisconnect : DeleteSession when user exit from his browser?
Dear Users, I try to use the sample HttpAppSrv provide with ICS and I would like to add a little thing: If the user closes the browser, I would like to: - 1st: Display the disconnection - 2nd: delete his sessiondata But If I test in local (127.0.0.1...) what I have (see below): - no erreur for showing the disconnected text - Session has been delete, but the message appears one more time when the TimeOut is over. And If I test from the net (another computer outside my network), I have: - an error on the line: MySessionData := .. (I can't see the error message sorry) Any help is welcome!! thks a lot, Bruno I do: procedure TMainServ.HttpAppSrv1ClientDisconnect(Sender, Client: TObject; Error: Word); var ClientCnx : THttpAppSrvConnection; MySessionData : TAppSrvSessionData; begin ClientCnx := Client as THttpAppSrvConnection; MySessionData := ClientCnx.WSession.SessionData as TAppSrvSessionData; Display('Client Disconnected: ' + MySessionData.UserCode); HttpAppSrv1DeleteSession(Self, ClientCnx.WSession); end; Waiting for client on port 20080 [14:52:05 127.0.0.1] : HTTP/1.1 GET /Login.html [14:52:10 127.0.0.1] : HTTP/1.1 GET /Main.html Client Disconnected: mannina Session for user mannina deleted Session for user mannina deleted = one TimeOut time later !! -- 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] HttpAppSrv1, ClientDisconnect : DeleteSession when user exit from his browser?
Sorry, please forgot my question, in fact I understand know, my prog enters in the Disconnect proc every 10s (KeepAlive param) so it's not the solution and it's not the right way ! sincerely Bruno Le 15/11/2011 14:54, Bruno Mannina a écrit : Dear Users, I try to use the sample HttpAppSrv provide with ICS and I would like to add a little thing: If the user closes the browser, I would like to: - 1st: Display the disconnection - 2nd: delete his sessiondata But If I test in local (127.0.0.1...) what I have (see below): - no erreur for showing the disconnected text - Session has been delete, but the message appears one more time when the TimeOut is over. And If I test from the net (another computer outside my network), I have: - an error on the line: MySessionData := .. (I can't see the error message sorry) Any help is welcome!! thks a lot, Bruno I do: procedure TMainServ.HttpAppSrv1ClientDisconnect(Sender, Client: TObject; Error: Word); var ClientCnx : THttpAppSrvConnection; MySessionData : TAppSrvSessionData; begin ClientCnx := Client as THttpAppSrvConnection; MySessionData := ClientCnx.WSession.SessionData as TAppSrvSessionData; Display('Client Disconnected: ' + MySessionData.UserCode); HttpAppSrv1DeleteSession(Self, ClientCnx.WSession); end; Waiting for client on port 20080 [14:52:05 127.0.0.1] : HTTP/1.1 GET /Login.html [14:52:10 127.0.0.1] : HTTP/1.1 GET /Main.html Client Disconnected: mannina Session for user mannina deleted Session for user mannina deleted = one TimeOut time later !! -- 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 -- 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
[twsocket] Increase Timeout v7 ?
Dear ICS Users, I would like to know how can I increase the timeout if I use GET Method ? I try to modify directly Timeout variable inside OverbyteICSHttpProt.pas without succes. Url works on I.E. directly, Url works also with a old demo .exe ics program (HttpTst (c) 1997-2005 Francois Piette V1.15) Thanks for your help, Regards, Bruno Mannina -- 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
[twsocket] solved: Increase Timeout v7 ?
Ok, I found how can I do, sorry for this dummy question ! Le 18/03/2011 22:51, Bruno Mannina a écrit : Dear ICS Users, I would like to know how can I increase the timeout if I use GET Method ? I try to modify directly Timeout variable inside OverbyteICSHttpProt.pas without succes. Url works on I.E. directly, Url works also with a old demo .exe ics program (HttpTst (c) 1997-2005 Francois Piette V1.15) Thanks for your help, Regards, Bruno Mannina -- 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 -- 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] HttpCli, bandWidthLimit ?
Is the Zip file is available on the website ? I can't find it, it always shows *[* Download ICS-V7 Distribution (October, 2010) *]* Regards, Bruno Le 07/02/2011 11:17, Fastream Technologies a écrit : In our tests, I have witnessed that making throttling code 99+% precise in async sockets is very difficult (or impossible). It needs a Sleep() call to do that which in turn requires a thread per socket. Regards, SZ On Mon, Feb 7, 2011 at 11:55 AM, Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk wrote: It's a great news for me ! Bandwidth throttling is now implemented in the HTTP Client and Server Just be aware the absolute bandwidth speeds may be 20% different from my various testing. I was testing at 1 and 5 megs, and got 0.8 and 4.7 meg speeds, but still much better than the 50 to 100 megs testing on a LAN can manage, at least you can see the progress happening. Getting bandwidth more accurate would need more resources. Angus -- 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 -- 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 -- 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] HttpCli, bandWidthLimit ?
Ok thanks, I can't find because I'm looking for on http://www.overbyte.be Regards, Bruno Le 07/02/2011 12:27, Angus Robertson - Magenta Systems Ltd a écrit : Is the Zip file is available on the website ? I can't find it, it always shows *[* Download ICS-V7 Distribution (October, 2010) *]* It's on the Wiki website: http://wiki.overbyte.be/wiki/index.php/ICS_Download SVN is zipped at about 11.05pm each night as: http://wiki.overbyte.be/arch/icsv7w.zip Angus -- 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 -- 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] HttpCli, bandWidthLimit ?
Great ! It works perfectly for me inside my program thanks a lot for this improvement ! Regards, Bruno Le 04/02/2011 20:07, Angus Robertson - Magenta Systems Ltd a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. I use POST requests, so it's sad for me. Bandwidth throttling is now implemented in the HTTP Client and Server using BUILTIN_THROTTLE, and works for both POST and GET requests. Four demo HTTP projects have been updated with a BandwidthLimit setting, and speed indication added to two demos. OverbyteIcsHttpPost - HTTP client upload a file demo OverbyteIcsHttpGet - HTTP client download a file demo OverbyteIcsHttpTst - HTTP client demo (no files) OverbyteIcsWebServ - HTTP server demo (needed for POST demo) TWSocketServer also implements bandwidth throttling, so any custom server applications using this component can easily implement throttling. The FTP client and server already implement bandwidth throttling. These changes are in SVN now and will be zipped overnight. Angus -- 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 -- 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] HttpCli, bandWidthLimit ?
Dear Angus, It's a great news for me ! Thanks a lot, Bruno Le 04/02/2011 20:07, Angus Robertson - Magenta Systems Ltd a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. I use POST requests, so it's sad for me. Bandwidth throttling is now implemented in the HTTP Client and Server using BUILTIN_THROTTLE, and works for both POST and GET requests. Four demo HTTP projects have been updated with a BandwidthLimit setting, and speed indication added to two demos. OverbyteIcsHttpPost - HTTP client upload a file demo OverbyteIcsHttpGet - HTTP client download a file demo OverbyteIcsHttpTst - HTTP client demo (no files) OverbyteIcsWebServ - HTTP server demo (needed for POST demo) TWSocketServer also implements bandwidth throttling, so any custom server applications using this component can easily implement throttling. The FTP client and server already implement bandwidth throttling. These changes are in SVN now and will be zipped overnight. Angus -- 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 -- 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] HttpCli, bandWidthLimit ?
Dear Anton, Thank you for your message, Unfortunately my programmation level is not engouh good to understand your explanation and therefore I am unable to make any modifications you to tell me, I do not even know what file I need to change :'( Could you guide me to do the modification please ? and where ? it would be really nice from you. If not, no problem I understand you have no time to loose with my problem, Anyhow thank you for your message, Sincerely, Bruno M. Le 27/01/2011 08:45, Anton S. a écrit : Arno, in FtpCli unit there's quite large piece of code {$IFDEF UseBandwidthControl} FBandwidthCount := 0; // Reset byte counter if ftpBandwidthControl in FOptions then begin if not Assigned(FBandwidthTimer) then FBandwidthTimer := TIcsTimer.Create(Self); FBandwidthTimer.Enabled := FALSE; FBandwidthTimer.Interval := FBandwidthSampling; FBandwidthTimer.OnTimer := BandwidthTimerTimer; FBandwidthTimer.Enabled := TRUE; // Number of bytes we allow during a sampling period FBandwidthMaxCount := Int64(FBandwidthLimit) * FBandwidthSampling div 1000; FBandwidthPaused := FALSE; end; {$ENDIF} repeating 4 times in TCustomFtpCli.DataSocketGetSessionConnected TCustomFtpCli.DataSocketPutSessionConnected TCustomFtpCli.DataSocketGetSessionAvailable TCustomFtpCli.DataSocketPutSessionAvailable Shouldn't it be extracted into separate procedure? Bruno, using BUILTIN_THROTTLE it's quite easy to add bandwidth control, just add Socket.BandwidthLimit and Socket.BandwidthSampling assignment after socket creation and that's all. -- 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] HttpCli, bandWidthLimit ?
Dear Anton, Thanks a lot for these information, I will do the tests and modification tonight at home. I will keep inform if I success to do it. Thx a lot ! Bruno Le 27/01/2011 13:28, Anton S. a écrit : 2Bruno: Could you guide me to do the modification please ? and where ? it would be really nice from you. Well, I'm not an expert in ICS and have little knowledge of HttpCli but here's dummy vision of the issue. Search inside OverbyteIcsFtpCli.pas for BUILTIN_THROTTLE and copy-paste all the stuff dealing with properties BandwidthLimit BandwidthSampling to corresponding methods of FtpCli based in OverbyteIcsHttpProt.pas. Then find TCustomFtpCli.DataSocketGetInit and copypaste {$IFDEF BUILTIN_THROTTLE}...{$ENDIF} block into THttpCli.DoBeforeConnect (you'll also need to add httpoBandwidthControl to THttpCliOption type - it'll be replacement of ftpBandwidthControl option). And as long as I understand, you're done. 2Angus: Anton was not referring to the HTTP client, but the FTP client. He was asking for some code to be simplified, but the code he posted is actually obsolete and no longer used by the FTP client. It has been replaced by new common throttling code in TWSocket which is enabled by the BUILTIN_THROTTLE definition. This was only added last year, so we tend to keep old code for a while until new code is thoroughly tested. Well, my report of repeating code pieces has little connection with the topic, moreover, I guess it's only Arno and/or Francois who might be interested in my report. But as we are talking about bandwidth stuff I decided to mention it inside this topic. As long as obsoleteness is concerned, I have no info on future plans of this feature but the ICS NOT BREAK EXISTING CODE commandment hints that UseBandwidthControl would probably remain. -- 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] HttpCli, bandWidthLimit ?
Dear Arno, Is it possible to have a date when you think that the bandwidth control will be available for POST method in HttpCli component ? I need this option, and my boss asks me if I can have a date when this option will be available. Many thanks for your help, Sincerely, Bruno Le 09/01/2011 04:12, Bruno Mannina a écrit : Le 08/01/2011 18:43, Arno Garrels a écrit : Bruno Mannina wrote: Le 08/01/2011 10:17, Arno Garrels a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. Dear Arno, thanks for these informations, I use POST requests, so it's sad for me. In current ICSv7 there's a native throttle feature implemented at the TCustomWSocket level. The FTP client and server component already use that when BUILTIN_THROTTLE is defined. It's planed (and very easy) to change the THttpCli to use that code as well. Unfortunately currently I've no sparetime left to make it. I'm not a very good programmer so I will wait the next release. thx a lot, -- 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 -- 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] HttpCli, bandWidthLimit ?
Le 08/01/2011 10:17, Arno Garrels a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. Dear Arno, thanks for these informations, I use POST requests, so it's sad for me. Thx -- 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] HttpCli, bandWidthLimit ?
Le 08/01/2011 18:43, Arno Garrels a écrit : Bruno Mannina wrote: Le 08/01/2011 10:17, Arno Garrels a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. Dear Arno, thanks for these informations, I use POST requests, so it's sad for me. In current ICSv7 there's a native throttle feature implemented at the TCustomWSocket level. The FTP client and server component already use that when BUILTIN_THROTTLE is defined. It's planed (and very easy) to change the THttpCli to use that code as well. Unfortunately currently I've no sparetime left to make it. I'm not a very good programmer so I will wait the next release. thx a lot, -- 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
[twsocket] HttpCli, bandWidthLimit ?
Dear Members, Can someone help me to understand how can I use the property BandWidthLimit ? Thanks a lot, Bruno -- 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
[twsocket] SOAP Webservice and ICS
Dear members, I need help to know if I can use the HTTP ICS component to connect and access document for this WebService http://ops-i.epo.org I don't want to use a normal soap component like HTTPRIO, because I want to update my program. I attached my little program to test the connection. I'm only interested by the SoapAction Biblio-Search I got an error 500 with my program, I don't know the right request to get the answer of biblio-search request. I read the doc of http://ops-i.epo.org/pdf/eql.pdf with no success :o( Please, help me to success my requests with ICS component and this webservice. Sincerely, Bruno Mannina -- 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
[twsocket] How can i get an SOAP attach file with Http component ?
Hi all, i'm trying since four days ago to get a SOAP attach file with one Http compo without result :( i use HttpCli from ICS that i modified with the help of F. Piette. I get the right XML response but i can't see the attach file ?! i'm sure that the attach file is reply by the SOAP server. So can someone help me to find how i can correct my test program ? I can send my test program if you need. Many Thank's for Helpers :) Bruno -- 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
[twsocket] SOAP and Attach file
Hello All, i try to use HttpTst program to get information from a SOAP server (i modify it with the help of F. Piette, it's ok). When i try to get a single XML doc, no problem but i must also get a XML response with an attach file and that is the problem. I get no error, a xml information but i ve no attach file ?!? Can some help me ? Many Thank's for your help Bruno -- 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] Do You have the same problem with this url and HttpTst ?
Hi Francois, Well, well, well it's Work fine now :) even my program !!! Thank's a lot Bruno - Original Message - From: Francois PIETTE To: ICS support mailing Sent: Wednesday, October 19, 2005 8:26 PM Subject: Re: [twsocket] Do You have the same problem with this url and HttpTst ? I get the same result as you. And I found why. And of course I fixed it. Here is the fix (in red bold): procedure THttpCli.SendRequest(const Method, Version: String); ... if (FTargetPort = '80') or (FTargetPort = '') then Headers.Add('Host: ' + FTargetHost) else Headers.Add('Host: ' + FTargetHost + ':' + FTargetPort); -- [EMAIL PROTECTED] The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Bruno Mannina [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, October 19, 2005 3:20 AM Subject: [twsocket] Do You have the same problem with this url and HttpTst ? Hi All, I want to GET this url http://liinwww.ira.uka.de/bibliography/Ai/agents.html but HttpTst program returns me Error 400 Bad Request ??!! FireFox or I.E. programs reply me StatusCode = 200 !!! Can you try or give me a solution ?? Sincerely, Bruno -- 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
[twsocket] Do You have the same problem with this url and HttpTst ?
Hi All, I want to GET this url http://liinwww.ira.uka.de/bibliography/Ai/agents.html but HttpTst program returns me Error 400 Bad Request ??!! FireFox or I.E. programs reply me StatusCode = 200 !!! Can you try or give me a solution ?? Sincerely, Bruno -- 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