Re: [twsocket] Pop-up downloads

2005-09-21 Thread Francois Piette
> >You have to analyse the pages you receive to see axactly which request(s) to > >send. You may also use a sniffer to capture a complete browser session and > >see exactly which requets are sent, which relocation occurs, which cookies > >are exchanged. > Can you suggest such a sniffer? Ther

Re: [twsocket] Pop-up downloads

2005-09-21 Thread Nicholas Sherlock
Tom Bolick wrote: >Can you suggest such a sniffer? > > Ethereal. I have done a very similar thing to what you will be doing, and Ethereal helped out tremendously. Cheers, Nicholas Sherlock -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/

Re: [twsocket] Pop-up downloads

2005-09-21 Thread Tom Bolick
Can you suggest such a sniffer? By the way, the data file I am downloading is probably created by the website based on the input of the form that gets filled out. (I usually leave the defaults, but they include the current date). So unfortunately, I will probably have to deal with the cook

Re: [twsocket] Connecting and sending in a thread

2005-09-21 Thread Francois PIETTE
> I'm not that familair with building multi-threaded applications, I > gave it a try but I didn't get it working. When I connect in the main > thread and create a thread in the onsessionconnect event, it works. > But when I terminate the thread and want to reconnect in the main > thread, I get a Wi

Re: [twsocket] Pop-up downloads

2005-09-21 Thread Francois PIETTE
> This may not be easily done, but I have a website that requires me to > navigate down a few levels, and click a > button to request a file. Then a small window pops up that tells me my > download will start in a moment. This > small window refreshes a couple of times before finally starting a

Re: [twsocket] Connecting and sending in a thread

2005-09-21 Thread Wilfried Mestdagh
Hello Jacco, > I'm not that familair with building multi-threaded applications, I But are you sure you neec multi threading ? Can you give reason wy you think it should be or tell something more about your application. You can easy have honderts of connections running in 1 thread (main thread).

Re: [twsocket] Using WSocket to get ip of domain

2005-09-21 Thread Arno Garrels
Don't wait in a loop. Event OnDnsLookupDone is fired after the lookup has finished. Arno Garrels Nick wrote: > But if you enter an invalid domain, or if you are not connected to the > internet, no error is raised. I even wrote my own timer function to abort > the process after 10 seconds but that

Re: [twsocket] Connecting and sending in a thread

2005-09-21 Thread Jacco Bezemer
Hi Wilfried, I'm not that familair with building multi-threaded applications, I gave it a try but I didn't get it working. When I connect in the main thread and create a thread in the onsessionconnect event, it works. But when I terminate the thread and want to reconnect in the main thread, I get

[twsocket] Using WSocket to get ip of domain

2005-09-21 Thread Nick
But if you enter an invalid domain, or if you are not connected to the internet, no error is raised. I even wrote my own timer function to abort the process after 10 seconds but that doesn't work either. sIP is a global string Button1 click sIP := ''; WSocket1.Addr:= edSite.text; WSocket

Re: [twsocket] Connecting and sending in a thread

2005-09-21 Thread Wilfried Mestdagh
Hello Jacco, There is no difference if you wants to do in a thread if all your code is thread safe, and you need a message pump in the thread. The most easy way is to develop / test all in main thread, so that you know that eventually bugs are not because of threaded code bugs. To do so you make

[twsocket] Connecting and sending in a thread

2005-09-21 Thread Jacco Bezemer
Hi, I want to connect (and reconnect) within a thread and send XML data within that same thread. How do I accomplisch this? Can someone help me on this? I'm using Delphi 7. Thanks in advance, Jacco -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elist