Re: [twsocket] webpage image source

2009-05-03 Thread Xxxx Xxxx
One more question: when I try to retrieve some images using the appended www., the image does not download, but when I omit the www., it downloads correctly. Try doing a GET request for notepad.com/images/firebug.gif and it works. Try www.notepad.com/images/firebug.gif and it does not. Either way

[twsocket] Any HTTP/Cookie line parser available?

2009-05-03 Thread Fastream Technologies
Hello, I need to parse the Cookie and Set-cookie and alter the path and domain vars for all cookies by first reading the old value, doing some processing and then replacing. Any good cookie parsers out there for Delphi/BCB? Best Regards, SZ -- To unsubscribe or change your settings for

[twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Paul
I'm trying to handle exceptions of all httpcli into a single procedure. I've have used HttpCli.CtrlSocket.onBgException, but this not fired at all. When I click twice on Button1, I get an error 'HttpCli is busy'. This is normal, but I wan't to intercept this. How ? Paul procedure

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Francois PIETTE
I'm trying to handle exceptions of all httpcli into a single procedure. I've have used HttpCli.CtrlSocket.onBgException, but this not fired at all. When I click twice on Button1, I get an error 'HttpCli is busy'. This is normal, but I wan't to intercept this. How ? Use try/except:

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Paul
Yes, but a central place would be much nicer, especially if you have a lot of clients together (50 +) .. Paul - Original Message - From: Francois PIETTE francois.pie...@skynet.be To: ICS support mailing twsocket@elists.org Sent: Sunday, May 03, 2009 4:30 PM Subject: Re: [twsocket]

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Francois PIETTE
I'm trying to handle exceptions of all httpcli into a single procedure. I've have used HttpCli.CtrlSocket.onBgException, but this not fired at all. When I click twice on Button1, I get an error 'HttpCli is busy'. This is normal, but I wan't to intercept this. How ? Use try/except:

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Paul
Then derive your own THttpCli from ICS's one and override GetAsync with version having try/except block and generating a new event of trigering an existing. Half an hour to do that. Yes, I could do that for every async instruction. Are there any other exceptions that I should catch that you

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Angus Robertson - Magenta Systems Ltd
but a central place would be much nicer, especially if you have a lot of clients together (50 +) .. You only need a single event for all 50 clients, provided you set the client Tag property uniquely so you know which client fired the event. Angus -- To unsubscribe or change your settings

Re: [twsocket] Any HTTP/Cookie line parser available?

2009-05-03 Thread Fastream Technologies
Hello, Has the below message reached your inboxes? Regards, SZ On 5/3/09, Fastream Technologies ga...@fastream.com wrote: Hello, I need to parse the Cookie and Set-cookie and alter the path and domain vars for all cookies by first reading the old value, doing some processing and then

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Paul
You only need a single event for all 50 clients, provided you set the client Tag property uniquely so you know which client fired the event. Yes, and I could use Sender also Thx, Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] OT: WM_USER or WM_APP

2009-05-03 Thread Paul
I'm using window message in range WM_USER+1 to WM_USER+200. For a long time, I've wondering why a http-client sometimes stops working although all messages do thru a message queue. Now, I'm told not to use messages in the WM_USER range, but in WM_APP range since third party components and

Re: [twsocket] THttpCli exception handling in async mode

2009-05-03 Thread Angus Robertson - Magenta Systems Ltd
You are right, except Tag is less appropriate than the Sender argument passed to the event handler. Sender always refers to the component sending the event. I meant tag of sender. Otherwise you'd have 50 nested tests for the correct sender. Angus -- To unsubscribe or change your

Re: [twsocket] OT: WM_USER or WM_APP

2009-05-03 Thread Arno Garrels
Paul wrote: I'm using window message in range WM_USER+1 to WM_USER+200. For a long time, I've wondering why a http-client sometimes stops working although all messages do thru a message queue. Now, I'm told not to use messages in the WM_USER range, but in WM_APP range since third party

Re: [twsocket] webpage image source

2009-05-03 Thread Xxxx Xxxx
This is what I thought also, but I have FollowRelocation set to True and it still downloads these images as invalid - like in the 'firebug.gif' example. There is data there, but the image won't display. -Original Message- From: Francois PIETTE [francois.pie...@skynet.be] Sent: 5/3/2009

Re: [twsocket] webpage image source

2009-05-03 Thread Xxxx Xxxx
Even the main logo of google.com vs. www.google.com gives me the same problem: Try doing a GET on google.com/intl/en_ALL/images/logo.gif - this does not download correctly for me with 'FollowRelocation' set to 'True'. -Original Message- From: Francois PIETTE [francois.pie...@skynet.be]

Re: [twsocket] webpage image source

2009-05-03 Thread Francois PIETTE
Probably the datastream contains data from the not relocated URL as well as the image from the relocated url. Use OnLocationChange to clear the datastream. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite

Re: [twsocket] OT: WM_USER or WM_APP

2009-05-03 Thread Arno Garrels
Arno Garrels wrote: ID. You hopefully do not post/send common messages (not registered by AllocateMsgHandlers) to the ICS window in V6 and better. Sorry, when I said common, I meant custom message IDs, in the range ICS V6 and better might allocate for own purposes (search for

Re: [twsocket] OT: WM_USER or WM_APP

2009-05-03 Thread Paul
They start at WM_USER + 1. So there can be a conflict. I think I better switch to WM_APP then Paul - Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support mailing twsocket@elists.org Sent: Sunday, May 03, 2009 9:26 PM Subject: Re: [twsocket] OT: WM_USER or WM_APP